Parse platform Can';t push-in-parse,表示安装已过时

Parse platform Can';t push-in-parse,表示安装已过时,parse-platform,Parse Platform,Hi已使用parse保存数据。但通知是我必须面对的事情。我不知道出了什么问题 <service android:name="com.parse.PushService"/> <receiver android:name="com.parse.ParseBroadcastReceiver"> <intent-filter> <action android:name="android.intent.actio

Hi已使用parse保存数据。但通知是我必须面对的事情。我不知道出了什么问题

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

    <receiver android:name="com.parse.ParseBroadcastReceiver">
        <intent-filter>
            <action android:name="android.intent.action.BOOT_COMPLETED"/>
            <action android:name="android.intent.action.RECEIVE_BOOT_COMPLETED"/>
            <action android:name="android.intent.action.USER_PRESENT"/>
        </intent-filter>
    </receiver>


Parse.initialize(this, applicationId, clientKey);
PushService.setDefaultPushCallback(this, HomeActivity.class);
ParseInstallation.getCurrentInstallation().saveInBackground()
我已经完成了所有接收器注册,因此我的设备也在安装表中注册,但在从web控制台发送推送时,它显示“推送发送0”。查看每个推送的描述,它显示“过时的设备-此安装上的记录已过时,用户可能已卸载该应用。” 但我只是做了登记

我快发疯了…不知道我做错了什么

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

    <receiver android:name="com.parse.ParseBroadcastReceiver">
        <intent-filter>
            <action android:name="android.intent.action.BOOT_COMPLETED"/>
            <action android:name="android.intent.action.RECEIVE_BOOT_COMPLETED"/>
            <action android:name="android.intent.action.USER_PRESENT"/>
        </intent-filter>
    </receiver>


Parse.initialize(this, applicationId, clientKey);
PushService.setDefaultPushCallback(this, HomeActivity.class);
ParseInstallation.getCurrentInstallation().saveInBackground()

初始化(this,applicationId,clientKey);
setDefaultPushCallback(this,HomeActivity.class);
ParseInstallation.getCurrentInstallation().saveInBackground()

非常感谢任何帮助

因此我非常感谢@Gyome的提示,这正是我出错的地方。我刚刚在我的gradle文件中更改了包裹名称,一切都很顺利。 当我检查我的发布版本时,我知道了。检查一下你是否有这个

   <uses-permission android:name="android.permission.GET_ACCOUNTS" />


我错过了这个,parse无法使用我的帐户生成密钥。

因为我无法上传图像…这里是一些截图的链接,我现在遇到了完全相同的问题…我发现它不起作用,因为我在调试构建类型中为包设置了后缀。失去了我生命中的两个小时。希望这能有所帮助。@Gyome你能详细说明你做了哪些更改吗…看一看你的gradle文件中有哪些内容我只是删除了debug{applicationIdSuffix.debug},因为我并不真正需要它。如果您需要保留它,我想您应该更改您在清单(以及其他任何必要的地方)中为解析内容声明的包名。这就成功了!在我的wasinmanifest中,我将“C2D_MESSAGE”权限更改为我的包名,但我没有注意到下一行有相同的包声明。改变,然后像一个魅力。