- [Fixed] Resolve StrictMode violations; typically from accessing SharedPreferences on main-thread.
- [Added] Auto-linking support for
react-native >= 0.60. See the Auto-linking setup in the README for more information.
react-native-background-fetch < 2.7.0 installed into react-native >= 0.60, you should first unlink your previous version as react-native link is no longer required.
$ react-native unlink react-native-background-fetch- [Added] New
react-native.config.jswanted byreact-native > 0.60.0. https://github.com/react-native-community/cli/blob/master/docs/dependencies.md
- [Added] Added extra Android
JobInfoconstraintsrequiredNetworkType,requiresCharing,requiresBatteryNotLow,requiresStorageNotLow,requiresDeviceIdle. - [Fixed] Merge PR transistor-background-fetch
- [Fixed] Merge PR transistor-background-fetch
- [Fixed] Monkey patch xcode npm module to ignore case in
findPBXGroupKeyAndType. Some projects physical folder name might be "foo" but the XCode group-name might be "Foo".
- [Fixed] react-native link script failed for Expo apps. Failed to find projectGroup by name. Finds it by path or name now.
- [Fixed] Windows issue in new react-native link script for Android
- [Added] Added android implementation for
react-native linkscript to automatically add the requiredmaven url. No more extras steps required — simply:react-native link react-native-background-fetch.
- [Fixed] Fixed
react-native linkscripts to detect when installing into an app already configured for Cocoapods.
- [Changed] Remove unnecessary gradle directive
buildToolsVersion.
- [Changed] Use updated gradle method
implementationinstead of deprecatedcompile.
- [Added] Android: Double check that app isn't in foreground before executing headless task (thanks to @macgregorT).
- [Fixed] Wrap Android HeadlessTask executor in try/catch to swallow errors if run while app is in foreground.
- [Fixed] react-native link scripts for Windows (PR #114)
- [Added] Typescript definitions.
- [Fixed] Fix link error when iOS and npm project name are diferent
- [Fixed] Clear event-listeners when
#configureis called. When used withreact-native-background-geolocationin "Headless Mode", this plugin could accumulate event-listeners with each reboot after terminate. - [Added] Add convenience method
BackgroundGeolocation#registerHeadlessTask, to be used instead ofAppRegistry#registerHeadlessTask.
- [Added] Implement ability to provide
UIBackgroundFetchResultto#finishrather than hard-codedUIBackgroundFetchResultNewData
- [Fixed] react-native link was broken for iOS due to unused aggregate target. Remove unused targets.
- [Changed] The Android library
tsbackgroundfetch.aarhas be composed as a Maven repository. The installation procedure has changed slightly now andflatDirshas been replaced with amaven url. See the corresponding installation docs for more information. - [Changed] Android will check for application-wide configuration properties
buildSdkVersion,buildToolsVersion,targetSdkVersion. See the Wiki "Solving Android Gradle Conflicts" for more information.
- [Added] Android implementation using
JobScheduler/AlarmManager