Pushwoosh - 本机 Android - 未收到通知
Pushwoosh - native Android - not receiving notifications
我完成了文档中的所有步骤。添加到 AndroidManifest.xml 的所有权限,为我的应用程序 ID 启用了 GCM。
控制台中没有错误或警告:
03-09 18:34:50.701 27716-27897/<strong>.*****.****** I/Pushwoosh:[RequestManager] | Pushwoosh 请求:| Url: <a href="https://cp.pushwoosh.com/json/1.3/registerDevice|" rel="nofollow">https://cp.pushwoosh.com/json/1.3/registerDevice|</a> 负载: {"request":{"device_type":3,"jailbroken":1,"userId":"882480c50abde42e","android_package":"</strong>.*****.*****","timezone":3600,"v":"3.3.0.607","app_version":" 1.0","sounds":[],"device_model":"Samsung SM-G920F","device_name":"Phone","push_token":"fvalCSNQGro:APA91bHb7_phOm9NuBrTsAGg65-LeJy54d4346ujpuAF8j4kVJm2cNIoWf3MOGB2qUjiMzK573Xd1-yfUwr6mf4rnAzjAIm89WvYtZkvReK69q25OZas3mm1iQjh4Raan04Cl66mprEc","os_version":"5.1.1","language":"en","application":"A7FD7-0B3C0","hwid":"882480c50dade42e"}} 响应:{"status_code":200,"status_message":"OK","response":null}x
03-09 18:34:50.701 27716-27897/<strong>.*****.****** D/Pushwoosh: [RequestManager] registerDevice 响应成功
03-09 18:34:50.701 27716-27716/</strong>.*****.****** V/Pushwoosh: [RegistrationPrefs] 在服务器状态上注册的设置为:true
03-09 18:34:50.711 27716-27716/**.*****.****** W/Pushwoosh:[DeviceRegistrar] 已注册推送:fvalCSNQGro:APA91bHb7_phOm9NuBrTsAGg65-LeJy54d434453fruAF8j4kVJm2cNIoWf3MOGB2qUjiMzK573Xd1- yfUwr6mf4rnAzjAIm89WvYtZkvReK69q25OZfs3mm1iQjh4Raan04Cl66mprEc
I have all of my devices registered successfully
你知道为什么我没有收到任何通知吗?
"Push history" 页面中的推送状态是什么意思?这是查看发送推送时实际发生的情况的最佳位置。
我找到了解决办法!
由于 API 密钥错误,GCM 未经授权。我不得不在 console.developers.google.com
将其更改为服务器密钥
我完成了文档中的所有步骤。添加到 AndroidManifest.xml 的所有权限,为我的应用程序 ID 启用了 GCM。 控制台中没有错误或警告:
03-09 18:34:50.701 27716-27897/<strong>.*****.****** I/Pushwoosh:[RequestManager] | Pushwoosh 请求:| Url: <a href="https://cp.pushwoosh.com/json/1.3/registerDevice|" rel="nofollow">https://cp.pushwoosh.com/json/1.3/registerDevice|</a> 负载: {"request":{"device_type":3,"jailbroken":1,"userId":"882480c50abde42e","android_package":"</strong>.*****.*****","timezone":3600,"v":"3.3.0.607","app_version":" 1.0","sounds":[],"device_model":"Samsung SM-G920F","device_name":"Phone","push_token":"fvalCSNQGro:APA91bHb7_phOm9NuBrTsAGg65-LeJy54d4346ujpuAF8j4kVJm2cNIoWf3MOGB2qUjiMzK573Xd1-yfUwr6mf4rnAzjAIm89WvYtZkvReK69q25OZas3mm1iQjh4Raan04Cl66mprEc","os_version":"5.1.1","language":"en","application":"A7FD7-0B3C0","hwid":"882480c50dade42e"}} 响应:{"status_code":200,"status_message":"OK","response":null}x
03-09 18:34:50.701 27716-27897/<strong>.*****.****** D/Pushwoosh: [RequestManager] registerDevice 响应成功
03-09 18:34:50.701 27716-27716/</strong>.*****.****** V/Pushwoosh: [RegistrationPrefs] 在服务器状态上注册的设置为:true
03-09 18:34:50.711 27716-27716/**.*****.****** W/Pushwoosh:[DeviceRegistrar] 已注册推送:fvalCSNQGro:APA91bHb7_phOm9NuBrTsAGg65-LeJy54d434453fruAF8j4kVJm2cNIoWf3MOGB2qUjiMzK573Xd1- yfUwr6mf4rnAzjAIm89WvYtZkvReK69q25OZfs3mm1iQjh4Raan04Cl66mprEc
I have all of my devices registered successfully
你知道为什么我没有收到任何通知吗?
"Push history" 页面中的推送状态是什么意思?这是查看发送推送时实际发生的情况的最佳位置。
我找到了解决办法! 由于 API 密钥错误,GCM 未经授权。我不得不在 console.developers.google.com
将其更改为服务器密钥