- [Android] Update default version for
androidx.lifecycle:lifecycle-runtime
to 2.7.0
.
- [Android] Remove dependency
androidx.appcompat:appcompat
(no longer required).
- [iOS] Code-sign
TSBackgroundFetch.xcframework
with new Apple Organization (9224-2932 Quebec Inc) certificate.
- [iOS] Add
ios/Resources
to package.json or npm publish ignores the new Privacy Manifest.
- [iOS] codesign
TSBackgroundFetch
- [iOS] Add PrivacyInfo -> TSBackgroundFetch.xcframework
- [iOS] Only allow registration of
BGProcessingTasks
(Permitted background task scheduler identifiers) in Info.plist
which are prefixed with com.transistorsoft
. Any other task identifier will be ignored.
- [Android] Detect and dispose of duplicate events. Android
JobService
has a bug for devices running <= Android M where multiple backgrou nd-fetch
events could fire within the same second.
- [Android] Android 14 (SDK 34) support..
- [Android] Android 14 support: When using
forceAlarmManager: true
, you must now optionally add the permission android.permission.SCHEDULE_EXACT_ALARM
to your AndroidManifest
to schedule exact alarms. Otherwise AlarmManager
will use in-exact alarms.
:open_file_folder: AndroidManifest
<manifest>
<!-- [background-fetch] OPTIONAL: allows forceAlarmManager: true to use exact alarms -->
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" android:maxSdkVersion="33" />
.
.
.
</manifest>
- [Android] Gradle v8 now requires
namespace
attribute in gradle files.
- [Android] log the jobId in
adb logcat
so that developers can simulate execution of scheduleTask
:
adb shell cmd jobscheduler run -f com.transistorsoft.backgroundfetch.capacitor.demo {jobId_here}
- Update /example to use latest @capacitor/cli:
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 4.6.3
@capacitor/core: 4.6.3
@capacitor/android: 4.6.3
@capacitor/ios: 4.6.3
Installed Dependencies:
@capacitor/cli: 4.6.3
@capacitor/core: 4.6.3
@capacitor/android: 4.6.3
@capacitor/ios: 4.6.3
- Update peerDependencies
"@capacitor/core": "^4.0.0"
.
- [Android] Use
LifecycleManager
for modern headless-detection instead of legacy mechanism requiring permission GET_TASKS
.
- [Android] Update for Android 12: add new required permission android.permission.SCHEDULE_EXACT_ALARM
- [Changed][Android] Allow multiple calls to .configure to allow re-configuring the fetch task. Existing task will be cancelled and a new periodic fetch task re-scheduled according to new config.
- [Changed][Android] Ignore initial fetch task fired immediately.
- [Changed][Android]
android:exported="false"
on BootReceiver
to resolve reported security analysis.
- Re-name iOS class Plugin -> BackgroundGeolocationModule. Was a name collision with generic name.
- Specify
static_framework = true
in podspec.
- Sanity-check delay provided to scheduleTask in JS API is a number. Attempt to parseInt when not.
- Initial Capacitor Beta Version