草庐IT

parseInstallation

全部标签

android - Parse.com 推送通知无法始终如一地工作,收到 "GCM -MISMATCH SENDER ID"错误

来自parse.com的推送通知并不总是有效。随机推送通知将失败,导致GCM-MISMATCHSENDERID”错误。据我了解,我们不必以编程方式对GCM做任何事情,因为parse.com将objectId发送到GCM。无论哪种情况,我都没有能够查明为什么有时会发生此错误而有时不会发生此错误的任何具体原因。此外,我使用的是Parse版本1.10.2。我的应用程序类有以下内容Parse.initialize(this,APPLICATION_ID_DEBUG,CLIENT_KEY_DEBUG);Parse.setLogLevel(Parse.LOG_LEVEL_VERBOSE);Pars

android - 将带有解析的推送通知发送到单个设备

我可以在我的Android应用程序中将推送消息仅发送到一个特定的设备(可能带有设备ID吗?)而不是发送到所有设备?一个简单的“是的,这可以用解析”或“不,你不能为此使用解析”就足够了!如果ans是,那么我需要知道如何...... 最佳答案 您可以在ParseInstallation中保存设备ID,然后将此安装作为目标:接收方:ParseInstallationinstallation=ParseInstallation.getCurrentInstallation();installation.put("device_id","12

android - ParseInstaller.getCurrentInstallation().saveInBackground() 正在卡住我的应用程序

我发现大约1/5的测试都卡住了,在搜索了一些问题后,我将问题缩小到以下范围:ParseInstallation.getCurrentInstallation().saveInBackground();我正在使用Parse1.5.1和Android4.4.2设备。我的应用程序类如下所示:publicclassInitApplicationextendsApplication{@OverridepublicvoidonCreate(){super.onCreate();Parse.initialize(this,"my_App_ID","my_Client_Key");PushServic

android - ParseInstallation.getCurrentInstallation().saveInBackground();不工作

我在iOS中创建了一个应用程序,它使用Parse来存储数据,还使用​​ParsePush在用户之间进行消息传递。我现在正在将应用程序转换为Android并尝试对两者使用相同的Parse后端。我正在成功上传/下载数据,我什至可以从Android用户向iOS用户发送消息,但我无法让我的Android设备接收消息。强调的问题似乎是我无法使安装工作。我正在从我的onCreate函数中调用这段代码:Parse.enableLocalDatastore(this);Parse.initialize(this,"id1","id2");ParsePush.subscribeInBackground(