IBM工作灯和推送通知的问题 [英] IBM Worklight and push notifications issue

查看:183
本文介绍了IBM工作灯和推送通知的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经部署使用IBM工作灯在真实设备上的Andr​​oid应用程序。
我已经启用了推送通知和Android模拟器的所有作品,但在实际设备上我看到这个弹出:

I've deployed an Android application on a real device using IBM Worklight. I've enabled the push notifications and all works on the Android emulator, but on the real device I see this popup:

无法注册推送通知。该应用程序将不会被
  能够接收通知。

Failed registering for push notifications. The application will not be able to receive notifications.

和在LogCat中,此消息:

And in LogCat, this message:

推送通知将无法正常工作,因为注册/注销到GCM
  服务返回的错误AUTHENTICATION_ERROR

Push notification will not work, because register/unregister to GCM service returned error AUTHENTICATION_ERROR

在Android设备的senderId相同的Gmail帐户syncronized。

On the android device the same gmail account of the senderId is syncronized.

我的环境:


  • 工作灯工作室5.0.6

  • 的Eclipse的Java EE IDE的Web开发。版本:朱诺服务版本1版本ID:20120920-0800

  • 的Windows7

  • 的Andr​​oid 2.3

我检查的行为有:


  • 的Andr​​oid 4.2智能手机

  • 的Andr​​oid 4.1智能手机

  • 的Andr​​oid 3.1平板电脑

  • 的Andr​​oid 2.3智能手机

我不能只与2.3版本的Andr​​oid认购推送通知的应用。

I'm not able to subscribe the application for push notifications only with the 2.3 Android version.

推荐答案

在推送通知工作灯与Android环境中开始的Andr​​oid OS 2.2及以上版本支持(的2.2.x,2.3.x版本和4.xx的工作灯不支持Android OS 3,但它应该工作灯没有少),在那里工作。

Push Notifications in Worklight with the Android environments are supported starting Android OS 2.2 and above (2.2.x, 2.3.x and 4.x.x. Worklight does not support Android OS 3, but it should work there with Worklight none the less).

从另一个SO问题: HTTP状态code:401 GCMDemo

验证错误结果,你试图使用发件人帐户
  发送邮件无法进行身份验证。可能的原因是:

Authentication Error
The sender account that you're trying to use to send a message couldn't be authenticated. Possible causes are:

Authorization头缺失或无效的语法。

Authorization header missing or with invalid syntax.

无效的项目号键。

键有效,但会禁用GCM的服务。

Key valid but with GCM service disabled.

请求起源于服务器密钥未列入白名单的服务器
  IP地址。

Request originated from a server not whitelisted in the Server Key IPs.

我要重新验证所有必需的设置,在这种情况下:Gmail地址和设备密码,Sender ID和关键的应用程序descriptor.xml

I would re-validate all required settings, in this case: Gmail address and password in the device, and senderId and Key in application-descriptor.xml

这篇关于IBM工作灯和推送通知的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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