AWS amazon android firebase推送通知 [英] AWS amazon android firebase push notification

查看:962
本文介绍了AWS amazon android firebase推送通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用firebase实现Android AWS亚马逊推送通知的问题,在Amazon示例中,它显示你添加这行代码。 http://docs.aws.amazon.com/pinpoint/latest/developerguide/mobile-sdk-android-modify.htmlrel =nofollow noreferrer>链接

  AWSMobileClient.defaultMobileClient()。getPinpointManager()。getNotificationClient()。registerGCMDeviceToken(refreshedToken); 

但是,一旦将其添加到项目 AWSMobileClient class not initialized,所以我添加了这些SDK的

  compile'c​​om.amazonaws:aws-android-sdk-core:2.4。 5'
compile'c​​om.amazonaws:aws-android-sdk-cognito:2.4.5'
compile'c​​om.amazonaws:aws-android-sdk-pinpoint:2.4.5'
编译'com.amazonaws:aws-android-sdk-mobileanalytics:2.4.5'

但是他们没有初始化,搜索后我发现你必须添加样本,所以我加了
示例类
,但类没有初始化



那么有什么简单的例子来初始化这个谢谢。

现在它在亚马逊人口统计上的显示已注册的新设备我有一个问题,我不能收到通知,即使您已经添加清单接收器代码

 < receiver 
android: name =com.amazonaws.mobileconnectors.pinpoint.targeting.notification.PinpointNotificationReceiver
android:enabled =true
android:exported =true>
< intent-filter>
< / intent-filter>
< / receiver>

也是来自亚马逊平台的推送通知手动工作在其他平台设备,如IOS,但它不工作在Android平台,所以我错过了这里的东西?!

I have an issue with implementing Android AWS Amazon push notification using firebase, in Amazon sample, it shows you to add this line of code

link

AWSMobileClient.defaultMobileClient().getPinpointManager().getNotificationClient().registerGCMDeviceToken(refreshedToken);

But once you add it to the project AWSMobileClient class not initialized so I have added these SDK's

compile 'com.amazonaws:aws-android-sdk-core:2.4.5'
compile 'com.amazonaws:aws-android-sdk-cognito:2.4.5'
compile 'com.amazonaws:aws-android-sdk-pinpoint:2.4.5'
compile 'com.amazonaws:aws-android-sdk-mobileanalytics:2.4.5'

But they didn't initialize, after searching I found that you have to add the sample so I added it Sample classes but the classes didn't initialize.

So is there any straightforward example to Initializing this thank you.

解决方案

now its shows on amazon demography the new devices that has registered but i have a problem i cant receive notification even thou i have added the manifests receiver code

  <receiver
        android:name="com.amazonaws.mobileconnectors.pinpoint.targeting.notification.PinpointNotificationReceiver"
        android:enabled="true"
        android:exported="true">
        <intent-filter>
            <action android:name="com.amazonaws.intent.fcm.NOTIFICATION_OPEN"/>
        </intent-filter>
    </receiver>

also the push notification from amazon platform manually working on other platforms devices like IOS but its not working on android platform so am I missing something here ?!

这篇关于AWS amazon android firebase推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆