Android应用内通知集成弹出窗口未显示

问题描述:

集成到我的应用程序时,我在Android应用程序内通知集成方面遇到问题.当活动推送中的接收者消息出现时,活动弹出窗口不显示.它只是显示如下通知:

I have problem with Android In-App Notifications Integration when integrate into my app. The campaign popup do not showing when receiver message from campaign push. It just show notification like this:

我确实参考了Facebook的此指南以进行整合: https://developers.facebook .com/docs/push-campaigns/android

I did refer this guide of facebook to integrate: https://developers.facebook.com/docs/push-campaigns/android

我的礼物:

compile 'com.facebook.android:facebook-android-sdk:4.+'
compile 'com.facebook.android:notifications:1.+'

对我的问题有什么建议吗?我的方式有什么问题,我该如何解决?谢谢.

Have any suggestion for my problem? What's wrong in my way and how can i fix it? Thanks.

我认为Facebook的指南缺少onNewIntent方法中的意图数据.我通过以下方式解决了该问题:

I think guide of facebook is missing intent data in onNewIntent method. I resolved it by:

@Override
protected void onNewIntent(Intent intent) {
    super.onNewIntent(intent);
    if (intent != null) {
        NotificationsManager.presentCardFromNotification(this, intent);
    }
}