flutter_background_geolocation 0.3.0
flutter_background_geolocation: ^0.3.0 copied to clipboard
The most sophisticated background location-tracking & geofencing module with battery-conscious motion-detection intelligence for iOS and Android.
Change Log #
0.3.0 - 2019-01-30 #
- [Added] New
schedulefeature for specifying "location+geofence" tracking or "geofence-only" in any schedule period. See docs for Config.schedule. - [Added] New
DeviceSettingsAPI for querying if Android app is ignoring battery optimization, in addition to methods for redirecting to "Ignore Battery Optimziations" settings screen. Also introduces a methodDeviceSettings.showPowerManagermethod for showing vendor-specific "Power Management" screen (eg: Huawei Settings->Battery->Launch).
bool isIgnoring = await DeviceSettings.isIgnoringBatteryOptimizations;
if (!isIgnoring) {
// Show Android "Ignore Battery Optimizations" settings screen.
DeviceSettings.showIgnoreBatteryOptimizations();
}
// Show Android vendor-specific "Power Manager" device settings screen (eg: Huawei)
DeviceSettings.showPowerManager();
- [Changed] Loosen
device_infodependency version to allow>=2.0.0.
0.2.4 - 2019-01-12 #
- [Changed] Update
device_infodependency ->0.3.0. - [Changed] Android Service: Return
START_STICKYinstead ofSTART_REDELIVER_INTENT. - [Changed] Android:
setShowBadge(false)on AndroidNotificationChannel. Some users reporting that Android shows a badge-count on app icon when service is started / stopped. - [Fixed] Android NPE in
watchPosition - [Added] Added method
getProviderStatefor querying current state of location-services. - [Added] Added method
requestPermissionfor manually requesting location-permission (#start,#getCurrentPosition,#watchPositionetc, will already automatically request permission.
0.2.3 #
- [Changed] Upgrade Android logger dependency to latest version (
logback). - [Fixed] Prevent Android foreground-service from auto-starting when location permission is revoked via Settings screen.
- [Fixed] NPE in Android HTTP Service when manual sync is called. Probably a threading issue with multiple sync operations executed simultaneously.
0.2.2 - 2018-11-21 #
- [Fixed] Android headless callback ids can be of Class Long vs Integer when assemble for release vs debug. Very odd, but added class-detection code.
0.2.1 - 2018-11-21 #
- [Fixed] Android headless configuration was setting incorrect headlessJobService class name.
- [Fixed] Android onActivityTerminate listener was incorrectly sending a signal to the native library when location permission activity was closed, incorrectly sending a signal that the app was terminated. This would remove all event-listeners.
- [Added] Android SDK 28 requires new permission to use foreground-service.
- [Fixed] Do not calculate odometer with geofence events. Android geofence event's location timestamp does not correspond with the actual time the geofence fires since Android is performing some heuristics in the background to ensure the potential geofence event is not a false positive. The actual geofence event can fire some minutes in the future (ie: the location timestamp will be some minutues in the past). Using geofence location in odometer calculations will corrupt the odometer value.
- [Fixed] Android could not dynamically update the
locationTemplate/geofenceTemplatewithout#stopand application restart. - [Fixed] Android
startGeofencesafter revoking & re-granting permission would fail to launch the plugin's Service.
0.2.0 - 2018-11-12 #
- [Changed] Include
background_fetchas an external dependency rather than including iOS TSBackgroundFetch.framework directly (this was always the plan). - [Changed] In example, import flutter_map (Leaflet) instead of google_map (too buggy and not ready).
0.1.7 - 2018-10-17 #
- [Fixed] Issue #8. Could not modify button-text of
locationAuthorizationAlertafter#ready.
0.1.6 - 2018-10-01 #
- [Changed] Refactor Android Headless mechanism. Got rid of Android
JobSchedulermechanism with more directEventBus.JobSchedulerevents were subject to Android time-slicing, causing headless events to arrive late.
0.1.5 - 2018-09-25 #
- [Fixed] warnings reported by Flutter publisher.
0.1.4 - 2018-09-25 #
- [Added] Android Headless mode. See docs for
enableHeadless. - [Added] an "event list" screen to "AdvancedApp" example.
- [Added]
errorcallback forBackgroundGeolocation.onLocation. - [Fixed] Issue #5 podspec property
s.static_framework = trueto allow the plugin to work in apps whereuse_frameworks!directive is applied inPodfile(Thanks to @vova-beloded).
0.1.3 - 2018-09-20 #
- Implementing Dart-style docs with
dartdoc - Re-organize
/libdir; remove/srcfolder (hides classes fromdartdoc).
0.1.2 - 2018-09-17 #
- Implementing advanced example app.
- Fix missing
removeListenermethods forenabledchange,connectivitychange - Implement
destroyLog - Implement instrumented testing in
example/test_driver. Seeexamples/scripts/test.sh - Fix warnings.
0.1.1 - 2018-09-15 #
- Implementing advanced example app.
- Fix bug in
getGeofences
0.1.0 - 2018-09-13 #
- First working beta release.
0.0.1 - 2018-07-07 #
- Reserve namespace. Plugin not yet implemented.