question

newuser-d46525d8-54f9-4b02-9292-66bc238166c8 avatar image

Expo ejected app - ADM Error INVALID_SENDER - Unable to parse API Key

I eject my EXPO app and android folder have the following structure host.exp.exponent. At the AndroidManifest.xml I have two names of the package name.

The first is "host.exp.exponent" generates when app is ejected
The second is 'com.company.appname' from build.gradle (based on the expo app.json)

I create the api_key for 'com.company.appname' and implement to api_key.txt, but I'have an error - ADM Error INVALID_SENDER - Unable to parse API Key for package 'com.company.appname'. Did you forget to embed it?

<!-- ADM -->
<amazon:enable-feature android:name="com.amazon.device.messaging" android:required="false"/>
  <service android:name="host.exp.exponent.ADMMessageHandler" android:exported="false" />
  <receiver android:name="host.exp.exponent.ADMMessageHandler$Receiver"
      android:permission="com.amazon.device.messaging.permission.SEND" >
      <intent-filter>
          <action android:name="com.amazon.device.messaging.intent.REGISTRATION" />
          <action android:name="com.amazon.device.messaging.intent.RECEIVE" />
          <category android:name="com.company.appname"/>
      </intent-filter>
  </receiver>




amazon device messaging
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers