[英]Android In-App Notifications Integration Popup not showing
集成到我的应用程序时,Android应用程序内通知集成存在问题。 当来自活动推送的接收者消息时,活动弹出窗口不显示。 它只是显示如下通知:
我确实参考了Facebook的此指南以进行整合: https : //developers.facebook.com/docs/push-campaigns/android
我的gradle:
compile 'com.facebook.android:facebook-android-sdk:4.+'
compile 'com.facebook.android:notifications:1.+'
对我的问题有什么建议吗? 我的方式有什么问题,我该如何解决? 谢谢。
我认为Facebook的指南缺少onNewIntent
方法中的意图数据。 我通过以下方式解决了它:
@Override
protected void onNewIntent(Intent intent) {
super.onNewIntent(intent);
if (intent != null) {
NotificationsManager.presentCardFromNotification(this, intent);
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.