android - 在 Google Cloud Messaging 的用户通知中创建 notification_key 时出现 404 错误

标签 android push-notification http-status-code-404 google-cloud-messaging

我想为多用户 android 设备创建 notification_key。我完全按照下面的指南进行操作,但是 GCM 以 404 –page not found 错误响应我。用户通知端点应为 https://android.googleapis.com/gcm/notification . 这个功能现在可用吗?在文章的顶部,有一个奇怪的注释“要试用此功能,请使用此表格注册”。好像这个功能还没有发布???

http://developer.android.com/google/gcm/notifications.html

谢谢 瓦塞克

最佳答案

这是一项试用功能。您必须注册才能测试此功能:

Sign up to be a trial partner for the latest Google Cloud Messaging features which include bidirectional message streaming, and user notification APIs.

在注册页面中,您必须指定用于注册 GCM 的 GCM 项目 ID。我假设一旦您注册并获得批准,您将能够使用此项目 ID 及其 API key 来访问新功能。

关于android - 在 Google Cloud Messaging 的用户通知中创建 notification_key 时出现 404 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17313826/

相关文章:

android - 后退按钮和刷新上一个 Activity

android - 两个 AdMob 添加 - 集成问题

android - 我无法在 eclipse 4.2.1 中配置 ADT 插件(在 Mac OS X 10.5.8 上)

android - 如果 Android 用户在设置中禁用了我的应用程序的推送通知,我的应用程序是否仍会静默接收它们?

push-notification - 在 iPhone 上推送通知而不向用户发出警报

ios - iOS 和 Android 的 AWS Pinpoint 推送通知传送问题

javascript - 如何使用 casperJS 简洁地检查网页资源是否存在 404?

java - ServerSocket.accept() 抛出 SocketTimeoutException 并显示 null 消息

iphone - iOS5:通过 https 进行身份验证

php - .htaccess 重定向后通过 PHP 发送 404 header