Skip to content

Commit

Permalink
android: add explicit android:exported values in the manifest entries
Browse files Browse the repository at this point in the history
  • Loading branch information
abarisain committed Sep 20, 2021
1 parent 4b7dd6b commit 87f61c5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ Batch Cordova Plugin
Cordova users: when updating please remove the old plugin via `cordova plugin remove com.batch.cordova`, then install the new one.
Ionic Capacitor users: Nothing needs to be done as Capacitor integrates with NPM and the package.json natively.

**Android**

- Android 12 compatibility: Added explicit `android:exported` values to the manifest entries added by the plugin.

## 3.0.1

**Plugin**
Expand Down
6 changes: 4 additions & 2 deletions dist/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,13 @@

<config-file target="AndroidManifest.xml" parent="/manifest/application">
<service android:name="com.batch.cordova.android.BatchCordovaPushService"
android:permission="android.permission.BIND_JOB_SERVICE" />
android:permission="android.permission.BIND_JOB_SERVICE"
android:exported="false" />

<receiver
android:name="com.batch.cordova.android.BatchCordovaPushReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
android:permission="com.google.android.c2dm.permission.SEND"
android:exported="true" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="$PACKAGE_NAME" />
Expand Down

0 comments on commit 87f61c5

Please sign in to comment.