我有问题。解析推送通知没有动作。当我删除安装,并在再次运行后,我有3个安装,但没有发送推送通知成功(推送发送0)。你能帮助我吗
代码:
ParseInstallation.getCurrentInstallation()
.saveInBackground();
ParseUser.enableAutomaticUser();
ParseACL defaultACL = new ParseACL();
// If you would like all objects to be private by default, remove this
// line.
defaultACL.setPublicReadAccess(true);
ParseACL.setDefaultACL(defaultACL,
true);
<!-- parse push notification-->
<service android:name="com.parse.PushService"/>
<receiver
android:name="com.parse.ParsePushBroadcastReceiver"
android:exported="false">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.USER_PRESENT" />
<action android:name="com.parse.push.intent.RECEIVE" />
<action android:name="com.parse.push.intent.DELETE" />
<action android:name="com.parse.push.intent.OPEN" />
</intent-filter>
</receiver>
<receiver
android:name="com.parse.GcmBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE"/>
<action android:name="com.google.android.c2dm.intent.REGISTRATION"/>
<!--
IMPORTANT: Change "com.parse.starter" to match your app's package name.
-->
<category android:name="com.demo"/>
</intent-filter>
</receiver>