简体   繁体   English

无法注册Parse.com的推送通知(Titanium / Android)

[英]Trouble registering for Parse.com's push notification (Titanium / Android)

How do I register my Titanium Android app for Parse' push notification. 如何注册我的Titanium Android应用程序以进行Parse的推送通知。 I have followed instructions from the Parse Android Push Notification Guide and done the following: 我已按照《 解析Android推送通知指南》中的说明进行了以下操作:

  1. Created an installation record via POST to the Installation object 通过POST创建到Installation对象的安装记录
  2. The App's AndroidManifest has the appropriate perms etc. based on Parse' Android Push notification guide 应用程序的AndroidManifest具有适当的权限等,基于Parse的Android Push通知指南

However, the push console still states that "Your application does not have any registered devices to which it can send notifications." 但是,推送控制台仍指出“您的应用程序没有可向其发送通知的任何注册设备”。

What am I missing? 我想念什么? Do I need to enter my GCM Project Id anywhere or do something else? 我需要在任何地方输入我的GCM项目ID还是做其他事情? Any help / pointers will be very appreciated. 任何帮助/指针将不胜感激。 Thanks! 谢谢!

Sample repo here using the REST API for registering a device for push with Appcelerator, use the default function Ti.Network.registerForPushNotifications but in the success callback used the Parse.register function included in the library below. 这里的示例回购使用REST API通过Appcelerator注册用于推送的设备,使用默认函数Ti.Network.registerForPushNotifications但在成功回调中使用了以下库中包含的Parse.register函数。

There is too much code to include it all here, but let me know if you have additional issues and I can update the answer 这里有太多代码无法包含所有内容,但是如果您还有其他问题,请告诉我,我可以更新答案

https://github.com/aaronksaunders/tiParsePushSample/blob/master/README.md https://github.com/aaronksaunders/tiParsePushSample/blob/master/README.md

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM