2013-05-06 212 views
0

我已經在Android應用程序集成pushwoosh(未在鈦)pushwoosh響應空..
我成功地得到通知,也..我越來越

我的問題是,

文本顯示在通知區域這是我從woosh過去了..
但無法從意圖提取它
intent.getExtras()的getString(PushManager.PUSH_RECEIVE_EVENT)

而且我的通知不會留在通知區..
它只顯示一次並消失,我不能點擊那個
,因爲它不在那裏待..就像其他通知.. !! ??

請任何人都可以提出任何事情..?

+0

請張貼您的代碼以顯示通知。 – Eran 2013-05-06 12:30:58

+0

我編碼爲按pushwoosh配置指南 http://www.pushwoosh.com/programming-push-notification/android-push-notification-sdk-configuration-guide/ (我檢查並比較了3-4倍) – 2013-05-06 12:49:17

+0

//在onCreate並啓動推管理器 \t \t PushManager pushManager = new PushManager(this,APP_ID,SENDER_ID); \t \t pushManager.onStartup(this); Then //重新登記恢復的接收器 \t registerReceivers(); \t \t pushManager.setVibrateNotificationType(VibrateType.ALWAYS); \t \t pushManager.setSoundNotificationType(SoundType.ALWAYS); \t \t pushManager.setLightScreenOnNotification(true); – 2013-05-06 12:50:10

回答

0

要通知保留在通知欄上,可以在Android通知中設置。

Notification not= new Notification(R.drawable.icon,title+" "+context.getString(R.string.Start_in),System.currentTimeMillis()); 
not.flags=Notification.FLAG_NO_CLEAR; 

對於Android通知,有一個要求清除通知或不通知。所以我認爲會有一些標誌在到達時不清除通知。 因此,請嘗試找出未清除通知的標誌。 當您正在設置聲音標誌

pushManager.setSoundNotificationType(SoundType.ALWAYS); 
+0

在pushwoosh他們沒有提供創建通知的對象,所以我們不能設置標誌.. 但我找到另一種方式,當從Pushwoosh接收PushNotification時,我使用自己的(自定義)通知使用NotificationManager處理它.. 簡而言之我們必須結合pushwoosh +自己的通知對象 – 2013-05-08 20:05:33