Parse platform 解析-安装表未设置deviceToken或pushType

Parse platform 解析-安装表未设置deviceToken或pushType,parse-platform,push-notification,google-cloud-messaging,devicetoken,Parse Platform,Push Notification,Google Cloud Messaging,Devicetoken,我有一个用于解析的应用程序,通知工作正常。我更改了应用程序打包,并在解析时创建了一个新应用程序 在新的应用程序中,deviceToken和pushType列在table\u安装时始终保持为空,因此推送即使从解析网页发送也不起作用,并且在启动应用程序时会生成一个新条目 我已经在java代码和云代码上更新了解析键 有人知道我可能错过了什么,或者可能会发生什么,所以相同的代码在具有相同配置的不同应用程序中具有不同的行为 如果我使用pushType=“gcm”和“deviceToken”更新了其中一个安

我有一个用于解析的应用程序,通知工作正常。我更改了应用程序打包,并在解析时创建了一个新应用程序

在新的应用程序中,deviceToken和pushType列在table\u安装时始终保持为空,因此推送即使从解析网页发送也不起作用,并且在启动应用程序时会生成一个新条目

我已经在java代码和云代码上更新了解析键

有人知道我可能错过了什么,或者可能会发生什么,所以相同的代码在具有相同配置的不同应用程序中具有不同的行为

如果我使用pushType=“gcm”和“deviceToken”更新了其中一个安装,则该设备会收到通知


谢谢

好的,我也有类似的问题。这两列都是空的。 这主要是由于舱单问题。 您的权限似乎没有问题,因为您收到了通知,并且能够在解析数据库中注册

所以问题应该出在
标签上,应该只有两个像我一样的标签

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

如果您有任何类似“com.google.android.gcm.GCMBroadcastReceiver”的接收器,请删除,并启用解析日志记录:

Parse.setLogLevel(Parse.LOG_LEVEL_VERBOSE);
就我而言,我缺少GCM权限

<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<permission android:name="my.package.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="my.package.permission.C2D_MESSAGE" />