简体   繁体   English

推送通知AWS Firebase无法正常工作

[英]Push notification AWS firebase not working

After I have Implemented this answer 在实施此答案之后
second answer 第二个答案

It shows the new devices registered in amazon correctly but i cant receving a push notification at the android devices 它显示了正确在亚马逊注册的新设备,但我无法在android设备上接收推送通知

here is the code I have used to registration 这是我用来注册的代码

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);

and this for receiver 这是给接收者的

 <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>

so how to solve this problem or is there anything which is missing 那么如何解决这个问题或有什么缺少

我已经检查过API密钥,这是错误的,现在一切正常

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM