{"__v":11,"_id":"55af2506c97a1a0d0022466f","category":{"__v":3,"_id":"5540e6195cf9682100d61afa","pages":["55af2506c97a1a0d0022466f","55af3564555b900d0036d236","55af3847c97a1a0d00224680"],"project":"5540ce1b31827a0d007ab1cc","version":"5540ce1c31827a0d007ab1cf","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-04-29T14:09:29.049Z","from_sync":false,"order":8,"slug":"amazon","title":"Amazon"},"parentDoc":null,"project":"5540ce1b31827a0d007ab1cc","user":"55a79a4d4a33f92b00b7a111","version":{"__v":31,"_id":"5540ce1c31827a0d007ab1cf","project":"5540ce1b31827a0d007ab1cc","createdAt":"2015-04-29T12:27:08.390Z","releaseDate":"2015-04-29T12:27:08.390Z","categories":["5540ce1c31827a0d007ab1d0","5540d91bbb9e762d00f594ad","5540e5f131827a0d007ab212","5540e5febb9e762d00f594d3","5540e61331827a0d007ab213","5540e6195cf9682100d61afa","5540e62631827a0d007ab214","5540e63031827a0d007ab215","5540e63531827a0d007ab216","5540e63e5cf9682100d61afc","5540e6445cf9682100d61afd","5540e64a5cf9682100d61afe","55a4ff5b2e70c0250038050f","55acb28318eefd0d0071d504","55ae1abe8576b92300291c80","55ae453ef302af23000ac109","55af586d555b900d0036d296","55af91dac8a85321007a53c3","55b9fee204775a2f00628071","55b9ff0e04775a2f00628072","55b9ff4604775a2f00628073","55b9ff5fd72d1e1900276a38","55b9ff7f04775a2f00628074","55b9ff90eb08801900f833e5","55b9ffa5d72d1e1900276a39","55b9ffca04775a2f00628075","55b9fffdd72d1e1900276a3a","56bc2f033ee9e70d008b46af","56c2f6efbbf9ec2d00e0fe4f","57595bbb18760817001e8bbe","57d8d9793916800e003dde53"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-07-22T05:07:18.393Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":0,"body":"[**Download SDK**](https://github.com/Pushwoosh/pushwoosh-android-sdk)\n[**Sample Project**](https://github.com/Pushwoosh/pushwoosh-android-sdk/tree/master/Samples/Android-Simple)\n[**SDK API Docs**](https://github.com/Pushwoosh/pushwoosh-android-sdk/tree/master/Documentation) \n\nTo integrate Pushwoosh push notifications into your Amazon application you need to do simple following steps:\n\n**1.** Follow Android integration guide http://docs.pushwoosh.com/docs/android-sdk-fragments or http://docs.pushwoosh.com/docs/native-android-sdk\n\n**2.** Get the API KEY from Amazon according to the Amazon guide: https://developer.amazon.com/sdk/adm/credentials.html\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"body\": \"For a pre-release or “debug” version of your app, you must create an API Key and store it as the only data in a file named api_key.txt . **The api_key.txt file must be located inside the assets folder for your project.**\\nNote: ADM cannot recognize your API Key if it contains any spaces or line breaks.\\nFor a release or “production” version of your app, you may not need to create an API Key. Only if you sign the release version of your app using your own certificate, must you create an additional API Key for the release version of your app. Otherwise, if you allow Amazon to sign your app on your behalf, you do not need to create an additional API Key.\"\n}\n[/block]\n**3.** Add `com.pushwoosh.MessageAlertReceive`r and `com.pushwoosh.PushAmazonIntentService` to AndroidManifest.xml:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<service android:name=\\\"com.pushwoosh.PushAmazonIntentService\\\" />\\n\\n<receiver\\n          android:name=\\\"com.pushwoosh.MessageAlertReceiver\\\"\\n          android:permission=\\\"com.amazon.device.messaging.permission.SEND\\\">\\n  <intent-filter>\\n    <action android:name=\\\"com.amazon.device.messaging.intent.REGISTRATION\\\" />\\n    <action android:name=\\\"com.amazon.device.messaging.intent.RECEIVE\\\" />\\n\\n    <category android:name=\\\"${applicationId}\\\" />\\n  </intent-filter>\\n</receiver>\",\n      \"language\": \"xml\"\n    }\n  ]\n}\n[/block]\nThat’s it!","excerpt":"How to integrate Pushwoosh into your Amazon application","slug":"native-amazon-sdk","type":"basic","title":"Native Amazon SDK"}

Native Amazon SDK

How to integrate Pushwoosh into your Amazon application

[**Download SDK**](https://github.com/Pushwoosh/pushwoosh-android-sdk) [**Sample Project**](https://github.com/Pushwoosh/pushwoosh-android-sdk/tree/master/Samples/Android-Simple) [**SDK API Docs**](https://github.com/Pushwoosh/pushwoosh-android-sdk/tree/master/Documentation) To integrate Pushwoosh push notifications into your Amazon application you need to do simple following steps: **1.** Follow Android integration guide http://docs.pushwoosh.com/docs/android-sdk-fragments or http://docs.pushwoosh.com/docs/native-android-sdk **2.** Get the API KEY from Amazon according to the Amazon guide: https://developer.amazon.com/sdk/adm/credentials.html [block:callout] { "type": "warning", "body": "For a pre-release or “debug” version of your app, you must create an API Key and store it as the only data in a file named api_key.txt . **The api_key.txt file must be located inside the assets folder for your project.**\nNote: ADM cannot recognize your API Key if it contains any spaces or line breaks.\nFor a release or “production” version of your app, you may not need to create an API Key. Only if you sign the release version of your app using your own certificate, must you create an additional API Key for the release version of your app. Otherwise, if you allow Amazon to sign your app on your behalf, you do not need to create an additional API Key." } [/block] **3.** Add `com.pushwoosh.MessageAlertReceive`r and `com.pushwoosh.PushAmazonIntentService` to AndroidManifest.xml: [block:code] { "codes": [ { "code": "<service android:name=\"com.pushwoosh.PushAmazonIntentService\" />\n\n<receiver\n android:name=\"com.pushwoosh.MessageAlertReceiver\"\n android:permission=\"com.amazon.device.messaging.permission.SEND\">\n <intent-filter>\n <action android:name=\"com.amazon.device.messaging.intent.REGISTRATION\" />\n <action android:name=\"com.amazon.device.messaging.intent.RECEIVE\" />\n\n <category android:name=\"${applicationId}\" />\n </intent-filter>\n</receiver>", "language": "xml" } ] } [/block] That’s it!