You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pushnotifications/onesignal/_includes/add-apm-appdescriptor.mdx
+66Lines changed: 66 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,3 +32,69 @@ You should backup your application descriptor before running this command to ens
32
32
If you need to insert custom data into these sections see the guides for [Android](https://github.com/airsdk/apm/wiki/Usage-Generate#android) and [iOS](https://github.com/airsdk/apm/wiki/Usage-Generate#ios)
33
33
:::
34
34
35
+
36
+
37
+
38
+
### Amazon
39
+
40
+
Amazon is a specific implementation of Android and requires some additional manifest additions if you are distributing your application via the Amazon AppStore.
41
+
42
+
Firstly generate a custom android manifest addition for your application by running:
43
+
44
+
```
45
+
apm generate config android
46
+
```
47
+
48
+
This will create a file `config/android/AndroidManifest.xml` that you can add your required additions to.
49
+
50
+
Add the following content to the manifest file (noting that you need to add the xmlns:amazon declaration to the manifest tag):
Then regenerate your application descriptor to include these changes by running:
86
+
87
+
```bash
88
+
apm generate app-descriptor
89
+
```
90
+
91
+
Follow the [guide here](https://documentation.onesignal.com/docs/generate-an-amazon-api-key) to generate your Amazon API Key. You should end up with a file (`api_key.txt`) that you will need to add to the root of your application and ensure it is packaged into your application.
92
+
93
+
:::warning
94
+
Do not place the `api_key.txt` file in an `assets` folder as mentioned in the OneSignal documentation. Any assets from AIR are automatically added into this directory, so add it at the top level of your application package.
95
+
:::
96
+
97
+
:::info
98
+
You will need to be using a recent version of AIR to be able to support these additional manifest namespaces and tags.
0 commit comments