点击此页面中的蓝色按钮https://developers.google.com/cloud-messaging/android/client并在浏览器控制台中显示错误:
X-Frame-Options拒绝加载:accounts.google.com/ServiceLogin?service=cloudconsole&osid=1&passive=true&authuser=0&continue=console.developers.google.com/mobilesdk/bootstrap/ wizard / android?authuser%3D0%26hl%3Den%26cnturl%3Ddevelopers.google.com / cloud-messaging / android / client%26cntlbl%3DContinue%2BAdding%2BGCM%2BSupport%26cntapi%3Dgcm& hl = en不允许框架。
我在firefox和chrome中尝试了相同的结果。
更新: 我从控制台删除项目并创建新的。现在developers.google.com/mobile/add正常运行。神秘的行为
答案 0 :(得分:3)
似乎是谷歌的一些临时问题。同时使用以下链接执行此过程:
https://developers.google.com/mobile/add
您将被要求提供项目名称,包裹等详细信息,然后它将为您提供选择服务的选项。选择Google Could Messaging服务。最后,它会为您提供下载配置文件的选项。
答案 1 :(得分:2)
- >在API Manager下,创建密钥或使用现有密钥
- >单击下载图标以下载json配置文件。
修改强>
您可以使用以下格式检查配置文件:
{"project_info":{"project_id":"YOUR_PROJECT_ID","project_number":"YOUR_PROJECT_NUMBER","name":"YOUR_PROJECT_NAME"},"client":[{"client_info":{"mobilesdk_app_id":"1:673329586750:android:f36173e948059ccb","client_id":"android:gcm.play.android.samples.com.gcmquickstart","client_type":1,"android_client_info":{"package_name":"gcm.play.android.samples.com.gcmquickstart"}},"oauth_client":[],"api_key":[],"services":{"analytics_service":{"status":1},"cloud_messaging_service":{"status":1,"apns_config":[]},"appinvite_service":{"status":1,"other_platform_oauth_client":[]},"google_signin_service":{"status":1},"ads_service":{"status":1}}},{"client_info":{"mobilesdk_app_id":"","client_id":"android:com.google.android.gms.samples.appinvite","client_type":1,"android_client_info":{"package_name":"com.google.android.gms.samples.appinvite"}},"oauth_client":[{"client_id":"673329586750-7pl633luu5853v7lq5micimjknmuj527.apps.googleusercontent.com","client_type":1,"android_info":{"package_name":"com.google.android.gms.samples.appinvite","certificate_hash":"E07D385930D0BAA8A2B63322396987885A3B7C22"}}],"api_key":[],"services":{"analytics_service":{"status":1},"cloud_messaging_service":{"status":1,"apns_config":[]},"appinvite_service":{"status":2,"other_platform_oauth_client":[]},"google_signin_service":{"status":1},"ads_service":{"status":1}}},{"client_info":{"mobilesdk_app_id":"1:673329586750:android:27d689d63f1b7a06","client_id":"android:com.google.samples.quickstart.signin","client_type":1,"android_client_info":{"package_name":"com.google.samples.quickstart.signin"}},"oauth_client":[{"client_id":"673329586750-bepted85l74k08c8nap26gm4j253gvo6.apps.googleusercontent.com","client_type":1,"android_info":{"package_name":"com.google.samples.quickstart.signin","certificate_hash":"E07D385930D0BAA8A2B63322396987885A3B7C22"}}],"api_key":[],"services":{"analytics_service":{"status":1},"cloud_messaging_service":{"status":1,"apns_config":[]},"appinvite_service":{"status":1,"other_platform_oauth_client":[]},"google_signin_service":{"status":2},"ads_service":{"status":1}}}],"client_info":[],"ARTIFACT_VERSION":"1"}
修改强>
在developer console
中:删除项目并创建新项目可以解决连接问题。
答案 2 :(得分:0)
我刚遇到同样的问题 我想这可能是因为我没有完全登录。我刚刚去了bjiang提供的google开发者控制台链接(https://console.developers.google.com/project),它促使我登录,所以我做了。在此之后,我重新加载配置文件的原始页面并加载它。我猜我是通过一个没有正确权限的长期密钥登录的。