Phonegap - UrbanAirship - 黑莓移动推送通知

发布于 2024-12-28 23:04:49 字数 658 浏览 3 评论 0原文

我们对 iOS 和 Android 上的 UrbanAirship 非常满意,但对 Blackberry 上的却不满意。在花费了 100 多个小时并超出了我们的估计之后,我们无法让 UrbanAirship 在 Blackberry 上与 Phonegap 配合使用。

使用 Eclipse、BlackBerry webworks SDK 和 Phonegap 1.0(无法在 BB 上使用 > 1.0)。我们从 UA 的示例应用程序 (https://github.com/urbanairship/bb-push-sample-os5) 获取了用于推送集成的信息。然后是这里的 Phonegap 插件 (http://wiki.phonegap.com/w/page/35799737/How To Create a PhoneGap Plugin for BlackBerry WebWorks)。

UA 示例代码被提炼为所需内容(消除特殊 UI、临时存储等),然后硬塞到 Phonegap 插件结构中。已成功从我们的 javascript 文件调用插件(这样做会执行 java 插件中的方法,以及那些触及 BB 核心的方法)。尝试让插件充当推送通知的事件侦听器时会失败。

UrbanAirship 为我们提供了很大的帮助,但不愿意/无法提供适用于 BlackBerry 的 Phonegap 插件。

任何帮助将不胜感激。

We've been very happy with UrbanAirship on iOS and Android but not on Blackberry. After spending over 100 hours and blowing our estimates we have been unable to get UrbanAirship to work with Phonegap on the Blackberry.

Using Eclipse, BlackBerry webworks SDK, and Phonegap 1.0 (can't use > 1.0 on BB). We got the information from UA’s sample app (https://github.com/urbanairship/bb-push-sample-os5) for the push integration. Then the Phonegap plugin from here (http://wiki.phonegap.com/w/page/35799737/How To Create a PhoneGap Plugin for BlackBerry WebWorks).

The UA sample code was distilled down to what was needed (eliminate special UI, temporary storage, etc) and then shoehorned into the Phonegap plugin structure. Had success calling the plugin from our javascript files (in doing so executing methods in the java plugin, and those hitting the BB core). Failure comes trying to get the plugin to act as an event listener for push notifications.

UrbanAirship has been great in helping us out but is unwilling/unable to provide a Phonegap plugin that works with BlackBerry.

Any help would be greatly appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文