Mar*_*DSR 8 push-notification devicetoken parse-platform google-cloud-messaging
我有一个在Parse上工作的应用程序,通知工作正常.我更改了应用程序打包,并在Parse上创建了一个新应用程序.
使用新的app,deviceToken和pushType列在表_Installation中始终保持为空,因此即使从Parse网页发送,推送也不起作用,并且在启动应用程序时生成新条目.
我已经在我的java代码和我的云代码上更新了解析密钥.
有人知道我可能错过了什么或可能发生什么,所以相同的代码在具有相同配置的不同应用程序中有不同的行为?
如果我使用pushType ="gcm"和"deviceToken"更新其中一个安装,那么我在另一个应用程序中使用该设备,该设备会收到通知.
谢谢
好吧,我有类似的问题.这两列都是空的.这主要是由于明显的问题.您的权限似乎没问题,因为您收到通知并且还能够在解析数据库中注册.
所以问题应该在<receiver>标签中应该只有2个像我一样.
<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>
<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: If you change the package name of this sample app,
change "com.parse.tutorials.pushnotifications" in the lines
below to match the new package name.
-->
<category android:name="com.example.ifis" />
</intent-filter>
</receiver>
Run Code Online (Sandbox Code Playgroud)
如果您有任何接收器,如"com.google.android.gcm.GCMBroadcastReceiver"请删除,还有一个 <service android:name="com.parse.PushService" />
| 归档时间: |
|
| 查看次数: |
4493 次 |
| 最近记录: |