Android GCM推送通知

Android GCM推送通知,android,notifications,Android,Notifications,我已经在android应用程序的客户端成功地实现了推送通知 服务器端编程是在.net中完成的 然而,我已经遵循了google提供的文档中提到的每一步,即如何为推送通知实现GCM @谷歌API控制台的开发者,干净和成功地能够生成 1)Project Id and Sender Id. 2)API auth key. @应用程序,已成功生成注册Id 我最担心的是, 当我第一次运行我的应用程序时,消息是从服务器推送的。我的应用程序收到通知 当我第二次运行我的应用程序时,从那时起我就没有收到任何通知

我已经在android应用程序的客户端成功地实现了推送通知

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

然而,我已经遵循了google提供的文档中提到的每一步,即如何为推送通知实现GCM

@谷歌API控制台的开发者,干净和成功地能够生成

1)Project Id and Sender Id.
2)API auth key.
@应用程序,已成功生成注册Id

我最担心的是,

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

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


有人能帮忙吗

我也面临着与您相同的问题,即没有从服务器站点收到任何通知

如果每件事看起来都是正确的,并且从你的角度来看都很好。确保这几件事

* 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.

我希望它能以某种方式帮助您。

前面的测试我使用的是ip地址,现在我已设置为“无”。也就是说,我现在没有定义任何IP地址。。。。谢谢