简体   繁体   English

PhoneGap流星iOS推送通知

[英]PhoneGap Meteor iOS Push Notifications

I have currently used phonegap and deployed an iOS app that takes the URL of my meteor app and convert it into a "webapp" (not sure if this is accurate). 我目前使用phonegap并部署了一个iOS应用程序,该应用程序获取我的meteor应用程序的URL并将其转换为“webapp”(不确定这是否准确)。 However, I would like to implement remote/push notifications to Apple's servers APNS to enable the app to receive notifications, update badges etc... Are there any other means other than Urban airship? 但是,我想向Apple的服务器APNS实施远程/推送通知,以使应用程序能够接收通知,更新徽章等......除了Urban飞艇之外还有其他方法吗?

Also, I chanced upon ObjectiveDDP, https://github.com/boundsj/ObjectiveDDP#requirements , but the tutorial is not working for me and it is really frustrating. 此外,我偶然发现了ObjectiveDDP, https://github.com/boundsj/ObjectiveDDP#requirements ,但该教程对我不起作用,这真的令人沮丧。

Thank you! 谢谢!

You can use the Phonegap team Push Plugin ( on github ) that allows sending push notifications for Android and iOS. 您可以使用Phonegap团队推送插件在github上 ),允许为Android和iOS发送推送通知。

The plugin can be integrated via the phonegap build site without having to use Java or Objective-C or using Java or Objective-C. 该插件可以通过phonegap构建站点集成,而无需使用Java或Objective-C或使用Java或Objective-C。

Here is an updated answer that works as of 12/25/14: 这是一个更新的答案,截止日期为12/25/14:

Simply use the push package by raix: https://atmospherejs.com/raix/push The documentation is really good. 只需使用raix推送包: https ://atmospherejs.com/raix/push文档非常好。

I think you need this one, 我想你需要这个,
https://github.com/SpaceCapsule/Meteor-phonegap-push https://github.com/SpaceCapsule/Meteor-phonegap-push
I am implementing the same, 我正在实施同样的,
If I am able to do so I will put the demo too 如果我能够这样做,我也将把演示
Thanks. 谢谢。

I just released a new package that makes it easy to integrate Meteor with Cordova (Phonegap). 我刚刚发布了一个新的软件包,可以很容易地将Meteor与Cordova(Phonegap)集成。 You can use the Cordova API, including push notifications, just like it describes in the docs. 您可以使用Cordova API,包括推送通知,就像在文档中描述的那样。

Check out Cordova Loader package. 查看Cordova Loader包装。

Use PushPlugin 使用PushPlugin

cordova plugin add https://github.com/phonegap-build/PushPlugin.git

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

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