本文介绍了Studio模拟器未收到Bluemix推送消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在我看到示例(android)应用程序已经注册了Bluemix-PUSH通知.我已经配置了Bluemix应用程序的信息(APP ROUTE,APP UID)

Now that I see the sample (android) application is registered for Bluemix-PUSH notifications.I have configured the Bluemix Application's info (APP ROUTE, APP UID)

我正在使用-------- https中的Bluemix应用程序://github.com/ibm-bluemix-mobile-services/bms-samples-android-hellopush .我已经拉了这个项目,并使用适当的依赖gradle设置来构建它.

I am using a Bluemix app from ----https://github.com/ibm-bluemix-mobile-services/bms-samples-android-hellopush. I have pulled this project, and built it with the proper dependency gradle settings.

但是问题是我无法在模拟器的推送注册的Android App上看到从Bluemix应用发送的Push消息.另外,我在日志文件中看不到错误.

But the problem is that I can not see the Push message sent from the Bluemix app on the emulator's push-registered Android App. Also I could not see an error in log files.

安全银行网络上是否需要打开其他端口才能接收来自Bluemix的推送?

Are there any other ports that need to be opened on Secured bank Network in order to receive pushes from Bluemix?

我正在使用Android Studio 1.5.1,JDK 1.7和Emulator-API 19(启用Google API).

I am using Android Studio 1.5.1, JDK 1.7 and Emulator - API 19 (With Google API enabled).

我使用Android API 23.0构建了示例应用程序

I built the sample application using Android API 23.0

我们应该在Studio的模拟器上检查PUSH通知吗?

What should we check on PUSH notifications on studio's emulator?

推荐答案

如果任何地方都没有错误,则可能是使用错误的API密钥配置了您的Google应用凭据.

If there are no errors anywhere, chances are that your Google app credentials have been configured using the incorrect API key.

确保您已创建服务器密钥,而不是 Android密钥

Ensure that you have created a Server Key and not an Android Key

这篇关于Studio模拟器未收到Bluemix推送消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 01:04
查看更多