Push notification Amazon设备消息在常规androids上工作吗

Push notification Amazon设备消息在常规androids上工作吗,push-notification,amazon,kindle-fire,Push Notification,Amazon,Kindle Fire,我的应用程序使用Google Cloud Messenger。亚马逊有另一个版本。亚马逊的设备信息是在所有的安卓系统上运行还是只在Kindle上运行 有没有人有将谷歌和亚马逊合并到一个应用程序中的指南 当我在这里的时候,我该如何处理Fire模拟器呢?请参考亚马逊开发者论坛 ADM在Kindle Fire HD 8.9“4G、Kindle Fire HD 8.9、Kindle Fire HD 7和Kindle Fire(第二代)设备上受支持。Kindle Fire第一代设备不支持ADM 如文档中

我的应用程序使用Google Cloud Messenger。亚马逊有另一个版本。亚马逊的设备信息是在所有的安卓系统上运行还是只在Kindle上运行

有没有人有将谷歌和亚马逊合并到一个应用程序中的指南


当我在这里的时候,我该如何处理Fire模拟器呢?

请参考亚马逊开发者论坛

ADM在Kindle Fire HD 8.9“4G、Kindle Fire HD 8.9、Kindle Fire HD 7和Kindle Fire(第二代)设备上受支持。Kindle Fire第一代设备不支持ADM

如文档中所述,您可以区分运行APK的设备是否具有Amazon服务

如果在AndroidManifest.xml中指定android:required=“false”,则如果ADM不可用,则应用程序必须正常降级

<amazon:enable-feature android:name="com.amazon.device.messaging" android:required="false" />
这里已经记录了这一点:

boolean admAvailable = false ;
try
{
    Class.forName( "com.amazon.device.messaging.ADM" );
    admAvailable = true ;
}
catch (ClassNotFoundException e)
{
    // Handle the exception.
}

Add the following code to any of your code that requires the ADM library runtime.
if (admAvailable )
{
    // Your code that requires ADM goes here.
}