Skip to content

Commit

Permalink
Merge branch 'android-sdk-34'
Browse files Browse the repository at this point in the history
  • Loading branch information
transistorsoft-pkg committed Jul 31, 2023
2 parents e0f4fa8 + 26747b2 commit 4ab1393
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,21 @@ You must register these custom *task-identifiers* with your iOS app's __`Info.pl

:warning: A task identifier can be any string you wish, but it's a good idea to prefix them now with `com.transistorsoft.` — In the future, the `com.transistorsoft` prefix **may become required**.

### Android Setup (optional)

**Only** If you wish to use precise scheduling of events with [__`forceAlarmManager: true`__](#config-boolean-forcealarmmanager-false), *Android 14 (SDK 34)*, has restricted usage of ["`AlarmManager` exact alarms"](https://developer.android.com/about/versions/14/changes/schedule-exact-alarms). To continue using precise timing of events with *Android 14*, you can manually add this permission to your __`AndroidManifest`__. Otherwise, the plugin will gracefully fall-back to "*in-exact* `AlarmManager` scheduling":

:open_file_folder: In your `config.xml`, add the following block within the __`<platform name="android">`__ block (**exactly as-shown**:

```xml
<platform name="android">
<config-file parent="/manifest" target="app/src/main/AndroidManifest.xml">
<uses-permission android:minSdkVersion="34" android:name="android.permission.USE_EXACT_ALARM" />
</config-file>
</platform>
```
:warning: It has been announced that *Google Play Store* has plans to impose greater scrutiny over usage of this permission (which is why the plugin does not automatically add it).

## Example ##

### Pure Cordova Javascript (eg: Ionic 1)
Expand Down

0 comments on commit 4ab1393

Please sign in to comment.