As soon as the app changes from foreground to background, the locations will be saved according to the interval that you can set. It can also detect if the device is moving or standing still so it can disable the plugin temporarily to save battery.
This plugin is original from https://github.com/pmwisdom/cordova-background-geolocation-services.git