Android的黑莓GCM:无法注册移植Android应用程序,以GCM服务 [英] Android-Blackberry GCM: Can't register ported android app to GCM services

查看:247
本文介绍了Android的黑莓GCM:无法注册移植Android应用程序,以GCM服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们是具有注册我们的设备,所以我们可以得到推送通知,我们的Andr​​oid移植应用程序的一些问题。

We are having some issues registering our device so we can get push notifications in our android ported app.

下面是我们的情况:

- 我们有黑莓10开发阿尔法设备与操作系统版本:10.0.9.388

-We have a Blackberry 10 Dev Alpha device with OS version: 10.0.9.388

-Already注册到推送服务

-Already registered to the push service

-Created android.cfg和改变的值与黑莓收到的:

-Created android.cfg and changed values with the ones received from Blackberry :

- 增加了明显的权限。

-Added manifest permissions.

- 我们部署使用调试令牌的应用程序。

-We deploy the app using a Debug Token.

- 设备连接到黑莓的网络(我们可以添加联系人,通过BBM聊天等。)

-Device is connected to Blackberry network (we can add contacts, chat through BBM, etc.)

- 结构生成的.bar文件似乎是OK。 (apk文件,明显-permissions都OK too-,android.cfg)

-Structure of the generated .bar file seem to be ok. (.apk, manifest -permissions are ok too-, android.cfg)

GCM工作正常在Android设备上,但是,当我们在黑莓开发阿尔法设备调试它,注册从GCMRegistrar类的方法是不注册我们的设备和getRegistrationId方法总是返回一个空字符串。

GCM is working fine on Android devices, but, when we debug it on BlackBerry dev alpha device, register method from GCMRegistrar class is not registering our device and getRegistrationId method is always returning an empty string.

有没有异常被抛出,所以我们不知道什么是失败的注册方法。 有没有办法看到一些日志?

There is no exception being thrown, so we don't know what is failing in the register method. Is there a way to see some logs?

我们试图通过SSH连接到该设备,但我们不知道在哪里可以找到关于这方面的一些日志(如果有的话)。

We tried to connect to the device through SSH but we don't know where to find some logs about this (if there are any) .

推荐答案

更​​新操作系统版本从10.0.9.388到10.0.10.263之后,我们的GCM开始实施的工作(建议人们从黑莓支持团队)。

After updating OS version from 10.0.9.388 to 10.0.10.263, our GCM implementation started working (advice by people from Blackberry Support team).

我们拿到了注册ID叫GCMRegistrar.register后,现在我们正在通知! 所以没有必要使用黑莓SDK或任何其他第三方库

We got the registration id after calling GCMRegistrar.register and now we are getting notifications! So there is no need to use Blackberry SDK or any other third party library.

如果您正在移植你的android应用程序,以黑莓,使注册推送服务后,从黑莓邮件收到确认您的android.cfg结构良好和有效的数据。 同时检查是否推送通知的权限是在重新打包的.bar文件清单文件。

If you are porting your android app to blackberry, make sure your android.cfg is well formed and with valid data received from Blackberry mail after registration for push services. Also check if push notification permission are in the manifest file in your repackaged .bar file.

这篇关于Android的黑莓GCM:无法注册移植Android应用程序,以GCM服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆