我也成功地發送通知,但該通知只顯示當應用程序打開或運行在後臺,我需要推送通知,並看到它在狀態欄時,應用程序是完全關閉的問題?????。解析的Android pushNotification與PhoneGap的應用程序時關閉不工作?
i的mainActivity
使用此代碼Parse.initialize(this, "", "");
PushService.setDefaultPushCallback(this, MainActivity.class);
ParseInstallation.getCurrentInstallation().saveInBackground();
PushService.subscribe(this, "Broadcast", MainActivity.class);
和AndroidManifest
<receiver android:name="com.parse.ParseBroadcastReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.USER_PRESENT" />
</intent-filter>
</receiver>
我使用的PhoneGap科爾多瓦2.5.0與解析-1.2.3