Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/210.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android parse.com自定义通知接收器_Android_Parse Platform_Push Notification - Fatal编程技术网

Android parse.com自定义通知接收器

Android parse.com自定义通知接收器,android,parse-platform,push-notification,Android,Parse Platform,Push Notification,我正在使用parse.com推送通知的自定义通知接收器类来更改声音、振动。。。有时,在我看来,通知没有送达。我可以在parse网站上看到推送通知,即send。也许有人可以查看我的代码,并看到一些错误的代码片段 舱单: <service android:name="com.parse.PushService" /> <receiver android:name="com.parse.GcmBroadcastReceiver" android:pe

我正在使用parse.com推送通知的自定义通知接收器类来更改声音、振动。。。有时,在我看来,通知没有送达。我可以在parse网站上看到推送通知,即send。也许有人可以查看我的代码,并看到一些错误的代码片段

舱单:

  <service android:name="com.parse.PushService" />

  <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" />


          <category android:name="com.mflapp.test" />
      </intent-filter>
  </receiver>
  <receiver
      android:name=".MyCustomReceiver"
      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.OPEN" />
          <action android:name="com.parse.push.intent.DELETE" />
      </intent-filter>
  </receiver>

你难道一点也不缺@Override注释吗? 方法的签名应为:

@Override 
protected void onPushReceive(Context mContext, Intent intent) 
当我在通知方面遇到问题时,我会添加一行: android:name=“.MyApplication”添加到android清单中的应用程序标记,这对我很有帮助


我也不确定你的计算系统是否好。重新启动应用程序时,计数再次从1开始。我想您在向用户显示通知id时使用了它,但现在它不起作用。

没有人知道吗?谢谢
@Override 
protected void onPushReceive(Context mContext, Intent intent)