GCM推送通知

时间:2014-12-25 19:19:18

标签: android notifications

我已经在客户端(在我的Android应用程序中)的END处成功实现了推送通知。

服务器端编程在.net中完成。

但是,我已经按照谷歌提供的文件中提到的每一步,"如何实施推送通知的GCM"。

@ 面向开发人员的Google API控制台,干净利落地成功生成

1)Project Id and Sender Id.
2)API auth key.

@App,成功生成" 注册ID "。

我最关心的是,

第一次运行我的应用程序时,从服务器推送消息。我的应用收到了通知。

当我第二次运行我的应用程序时,从那时起我还没有收到任何通知。

任何人都可以帮忙吗?

1 个答案:

答案 0 :(得分:0)

我也面临同样的问题,即你没有从服务器网站收到任何通知。

如果每一件事情看起来都是正确的,那么你的工作正常。确保这些事情

* Server side did not receive any authentication error message.
  If they do, check and confirm the IP address provided by them is correct and entered
  correctly on Google API console as Credential.

* Each and every app receives unique Registered Id from GCM Server after providing
  relevant and required information to GCM server and that should be stored locally
  in your device.

* Notification alert should be coded so your app can be notified when they receive
  notification.

我希望以某种方式帮助你。