If you are shipping on Amazon devices, there are a few extra steps required to support Amazon Device Messaging (ADM).

Please note that GCM (Google Cloud Messaging) does not work on Amazon devices. In order to use push notifications on Amazon devices, these steps are required.

Follow Amazon’s Set Up Documentation

Amazon’s documentation for ADM is not authored with Unity in mind, so we have supplimented their integration steps with Unity instructions.

The Teak SDK will also automatically try to debug problems with ADM at runtime (in development builds).

Don’t hesitate to contact us if you are confused by any of these steps.

Credentials and API Key

First, you will need Amazon credentials and an Amazon API key.

Once you have completed these steps, go to your apps on the Amazon Developer site, and look at the Security Profiles

Click on the security profile for your app.

Copy the value in the Amazon security profile for Client ID into the Teak Mobile Settings for your app for ADM Client ID.

Copy the value in the Amazon security profile for Client Secret into the Teak Mobile Settings for your app for ADM Client Secret.

This gives Teak the information it needs to send ADM messages to your app.

Update Your AndroidManifest.xml

Teak uses the manifest merger stage to automatically add the required changes to your AndroidManifest.xml.

If you are having issues, please check to make sure that the following exist in the final manifest for your game:

    android:protectionLevel="signature" />
<uses-permission android:name="${applicationId}.permission.RECEIVE_ADM_MESSAGE" />
<uses-permission android:name="" />
<uses-permission android:name="android.permission.WAKE_LOCK" />


<service android:name="io.teak.sdk.push.ADMPushProvider$ADMMessageHandler_1_0_1"
    android:exported="false" />

    android:exported="false" />

        <action android:name="" />
        <action android:name="" />
        <category android:name="${applicationId}" />

Store Your API Key as an Asset

When this documentation references the assets folder, it means Assets/Plugins/Android/assets.

Give it a Try

You should now have what you need to test ADM support.

Keep an eye on the debug console, if you see:

Add this to your <application> in AndroidManifest.xml in order to use ADM: <amazon:enable-feature android:name="" android:required="false" />

Revisit step 3 in

If you see log output with event_type of amazon.adm.registration_error Teak is trying to determine why ADM registration has failed. If you see:

Unable to find 'api_key.txt' in assets [...]

api_key.txt is not in the Android assets. Revisit

If you see:

Whitespace found in 'api_key.txt'

There is whitespace somewhere in the contents of api_key.txt, this will prevent Amazon’s SDK from reading the key. Remove the whitespace, it is usually a trailing newline.

If you see:

Potentially malformed contents of 'api_key.txt', does not contain three sections delimited by '.'

The contents of api_key.txt are incorrect. Revisit

If you see:

Package name mismatch in 'api_key.txt'

The package name of your app does not match the package name inside api_key.txt. The api_key.txt must be generated for the package name of your app.

If you see:

App signature SHA-256 does not match api_key.txt
App signature MD5 does not match api_key.txt

The signature your app was signed with does not match any of the signatures in api_key.txt. Revisit step 8 in