question

jasonappboy avatar image
jasonappboy asked ·

What does ADMManifest.checkManifestAuthoredProperly() actually do?

Amazon Device Messaging has a static method used to ensure that the AndroidManifest.xml file is setup properly to allow for ADM messages to be sent and received. It is a void method. What does this method actually do? What happens when the manifest is not setup correctly?
amazon device messaging
10 |2000 characters needed characters left characters exceeded

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

1 Answer

adm-support avatar image
adm-support answered ·
Hi Jason, The manifest check method queries Android's package manager to ensure you have the correct entries in your manifest (permissions, exported receiver). It also checks that you have an API key embedded, but does not check if it is valid. If any of these checks fail, it throws an IllegalStateException. Also worth nothing: the manifest checker is intended to be used during ADM integration to quickly find issues in your manifest, and should not be put into the critical path of your application.
10 |2000 characters needed characters left characters exceeded

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