2017-07-28 88 views
0

當我集成到我的應用中時,我遇到了Android應用內通知集成問題。活動彈出窗口不會顯示活動推送的接收者消息的時間。它只是表明這樣的通知:Android應用內通知集成彈出窗口不顯示

enter image description here

我指的facebook本指南整合:https://developers.facebook.com/docs/push-campaigns/android

我gradle這個:

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

有我的問題有何建議?我的方式有什麼問題,我該如何解決?謝謝。

回答

0

我認爲Facebook的指南缺少onNewIntent方法的意向數據。我解決了它:

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