简体   繁体   English

在Titanium中解析Android的推送通知

[英]Parse Push Notification for Android in Titanium

i found solution in iOS with REST API... but... how to do the same in android? 我在iOS中使用REST API找到了解决方案...但是...如何在android中做同样的事情? anyone solved this? 有人解决了吗? or found kind of workaround? 或找到一种解决方法?

https://marketplace.appcelerator.com/apps/7889#!overview - This module not available in appcelerator market. https://marketplace.appcelerator.com/apps/7889#!overview-此模块在appcelerator市场中不可用。

I tried below module also https://github.com/programmerdave/Titanium-Parse-Module-PreReleases 我也在模块下面尝试过https://github.com/programmerdave/Titanium-Parse-Module-PreReleases

But this module not worked. 但是此模块不起作用。

Please help me to solve it. 请帮我解决。

Thanks 谢谢

Unfortunately Parse uses its own GCM sender id. 不幸的是,Parse使用自己的GCM发送者ID。 So it is impossible to use the normal GCM module to fetch a deviceToken and share it with Parse via the REST API, like you would do on iOS. 因此,不可能像在iOS上那样使用正常的GCM模块来获取deviceToken并通过REST API与Parse共享它。 (My previous answer is thus invalid, apologies!) (因此,我以前的回答无效,很抱歉!)

I created a Titanium module for Android to get Push Notifications working, but it is not yet 100% finished. 我为Android创建了Titanium模块,以使Push Notifications正常工作,但尚未100%完成。 You do receive the push notifications, but you do not yet get a signal/event when someone clicks on a notification. 您确实收到了推送通知,但是当有人单击通知时您还没有收到信号/事件。 I am however currently working on this module and hopefully have a complete implementation within a couple of days. 但是,我目前正在研究此模块,并希望在几天内完成一个完整的实现。 (I need it for a project as well). (我也需要一个项目)。

The module can be found at: https://github.com/timanrebel/Parse Please use version 0.2 which is working. 可以在以下位置找到该模块: https : //github.com/timanrebel/Parse请使用有效的0.2版。 The module is open source and the master is ahead of release 0.2 and includes the new Android SDK from Parse. 该模块是开源的,并且主版本早于0.2版,并且包含Parse的新Android SDK。 Any help is appreciated! 任何帮助表示赞赏!

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

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