-
Notifications
You must be signed in to change notification settings - Fork 20
Description
Required Reading
- Confirmed
Plugin Version
@transistorsoft/capacitor-background-fetch -> ^7.0.1, @transistorsoft/capacitor-background-geolocation -> ^7.0.3
Mobile operating-system(s)
- iOS
- Android
Device Manufacturer(s) and Model(s)
Both Android and iOS
Device operating-systems(s)
iOS > 15 and Android > 10
What do you require assistance about?
We are currently testing the background fetch functionality on multiple devices, including both iOS and Android platforms. During our testing, we have observed that a significant number of records display the Travel Mode as "Unknown." We are unable to determine why "Unknown" is appearing instead of expected values such as "Still" or other relevant statuses.
We have purchased and integrated the plugin, but this issue persists. We kindly request your assistance in investigating and resolving this matter at your earliest convenience.
Our investor had 10,000 data points and, 9000 were unknown, too many unknowns with the application.
Thank you for your support.
[Optional] Plugin Code and/or Config
BackgroundGeolocation.ready({
// Geolocation Config
desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH,
distanceFilter: this.gfSetByUser,
url:`${webAdmin.apiAdminUrl}firebase-location/`,
extras:{email: userId, uid:uid, autorization: token},
debug: false, // <-- enable this hear sounds for background-geolocation life-cycle.
logLevel: BackgroundGeolocation.LOG_LEVEL_VERBOSE,
stopOnTerminate: false, // <-- Allow the background-service to continue tracking when user closes the app.
startOnBoot: true, // <-- Auto start tracking when device is powered-up.
backgroundPermissionRationale:{
// title: "Location Permission",
message: "This app collect location data for track travel emissions",
}
}).then((state) => {
// BackgroundGeolocation is now ready to use.
this.isInitializing = false;
this.ready = true;
this.enabled = state.enabled;
this.isEnabled$.next(this.enabled);
this.addEvent('State', state);
}).catch(err=>{
this.isInitializing = false;
console.error("ready state added error");
console.error(err);
// this.logFirebaseEvent('ready:error', { error: err }).catch(()=>{});
});[Optional] Relevant log output
https://ibb.co/MxfYh1wL