Android应用内通知集成弹出窗口未显示 [英] Android In-App Notifications Integration Popup not showing

查看:69
本文介绍了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);
    }
}

这篇关于Android应用内通知集成弹出窗口未显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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