[英]Push notification AWS firebase not working
在實施此答案之后
第二個答案
它顯示了正確在亞馬遜注冊的新設備,但我無法在android設備上接收推送通知
這是我用來注冊的代碼
CognitoCachingCredentialsProvider cognitoCachingCredentialsProvider = new CognitoCachingCredentialsProvider(context,"IDENTITY_POOL_ID",Regions.US_EAST_1);
PinpointConfiguration config = new PinpointConfiguration(context, "APP_ID", Regions.US_EAST_1, cognitoCachingCredentialsProvider);
PinpointManager pinpointManager = new PinpointManager(config);
pinpointManager.getNotificationClient().registerGCMDeviceToken(refreshedToken);
這是給接收者的
<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>
那么如何解決這個問題或有什么缺少
我已經檢查過API密鑰,這是錯誤的,現在一切正常
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.