|
1 | 1 | <?xml version="1.0" encoding="utf-8"?>
|
2 | 2 | <manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
3 | 3 | xmlns:tools="http://schemas.android.com/tools"
|
| 4 | + xmlns:amazon="http://schemas.amazon.com/apk/res/android" |
4 | 5 | package="com.onesignal.sdktest">
|
5 | 6 |
|
6 | 7 | <uses-permission android:name="com.android.vending.BILLING" />
|
7 | 8 |
|
8 | 9 | <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
|
9 | 10 | <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
|
10 | 11 |
|
| 12 | + <permission |
| 13 | + android:name="com.onesignal.sdktest.permission.RECEIVE_ADM_MESSAGE" |
| 14 | + android:protectionLevel="signature" /> |
| 15 | + <uses-permission android:name="com.onesignal.sdktest.permission.RECEIVE_ADM_MESSAGE" /> |
| 16 | + <!-- This permission allows your app access to receive push notifications from ADM. --> |
| 17 | + <uses-permission android:name="com.amazon.device.messaging.permission.RECEIVE" /> |
| 18 | + |
| 19 | + <!-- ADM uses WAKE_LOCK to keep the processor from sleeping when a message is received. --> |
| 20 | + <uses-permission android:name="android.permission.WAKE_LOCK" /> |
| 21 | + |
11 | 22 | <application
|
12 | 23 | android:name=".application.MainApplication"
|
13 | 24 | android:allowBackup="true"
|
|
18 | 29 | android:theme="@style/AppTheme"
|
19 | 30 | tools:ignore="GoogleAppIndexingWarning">
|
20 | 31 |
|
| 32 | + <amazon:enable-feature |
| 33 | + android:name="com.amazon.device.messaging" |
| 34 | + android:required="false"/> |
| 35 | + |
| 36 | + <!-- You must replace the names in the service and receiver tags |
| 37 | + with names that are appropriate to your package. --> |
| 38 | + |
| 39 | + <service |
| 40 | + android:name="com.onesignal.ADMMessageHandlerJob" |
| 41 | + android:permission="android.permission.BIND_JOB_SERVICE" |
| 42 | + android:exported="false" /> |
| 43 | + |
| 44 | + <!-- This is needed for devices with older ADM versions --> |
| 45 | + <service |
| 46 | + android:name="com.onesignal.ADMMessageHandler" |
| 47 | + android:exported="false" /> |
| 48 | + |
| 49 | + <receiver |
| 50 | + android:name="com.onesignal.ADMMessageHandler$Receiver" |
| 51 | + android:permission="com.amazon.device.messaging.permission.SEND" > |
| 52 | + |
| 53 | + <!-- To interact with ADM, your app must listen for the following intents. --> |
| 54 | + <intent-filter> |
| 55 | + <action android:name="com.amazon.device.messaging.intent.REGISTRATION" /> |
| 56 | + <action android:name="com.amazon.device.messaging.intent.RECEIVE" /> |
| 57 | + |
| 58 | + <!-- Replace the name in the category tag with your app's package name. --> |
| 59 | + <category android:name="com.onesignal.sdktest" /> |
| 60 | + </intent-filter> |
| 61 | + </receiver> |
| 62 | + |
21 | 63 | <meta-data android:name="com.onesignal.NotificationServiceExtension"
|
22 | 64 | android:value="com.onesignal.sdktest.notification.NotificationServiceExtension" />
|
23 | 65 |
|
|
0 commit comments