Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/232.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android GCM,获取未经授权的错误401 GCM php,_Php_Android_Google Cloud Messaging - Fatal编程技术网

Android GCM,获取未经授权的错误401 GCM php,

Android GCM,获取未经授权的错误401 GCM php,,php,android,google-cloud-messaging,Php,Android,Google Cloud Messaging,我正在从事Android GCM项目,为了测试我正在使用的项目。我有一个用于GCM服务器实现的共享服务器。我通过谷歌浏览器API、服务器API密钥检查了这个应用程序 但我总是很高兴 "unauthorized error 401 ". 请检查您是否已在Google Cloud Console中启用Google Cloud messaging services for android您需要使用浏览器键并确保已启用Google Cloud messaging for android。Google

我正在从事Android GCM项目,为了测试我正在使用的项目。我有一个用于GCM服务器实现的共享服务器。我通过谷歌浏览器API、服务器API密钥检查了这个应用程序

但我总是很高兴

"unauthorized error 401 ".

请检查您是否已在Google Cloud Console中启用Google Cloud messaging services for android您需要使用浏览器键并确保已启用Google Cloud messaging for android。Google Cloud messaging for android已启用。谢谢各位,,,我犯了一个愚蠢的错误,使用了错误Key@BirajZalavadia:需要浏览器应用程序的“密钥”(使用referers)“非浏览器键。