【发布时间】:2021-11-03 06:50:09
【问题描述】:
查看官方文档,device_token不能用于hms_server发送下行消息。如果我想访问 hms_server,我必须请求另一个 oauth2 令牌。是否意味着device_token和hms_server_token都应该一直更新,还是只选择device_token这样的一个来发送下行消息?
URL: https://push-api.cloud.huawei.com/v1/appid/messages:send
Request Header:
Authorization Bear token (need to request from hms_server, the device_token is only used for identify the address of device)
【问题讨论】:
-
这是使用先前评论中的令牌向设备发送消息的方法:stackoverflow.com/questions/65359941/…
-
为什么不用device_token来代替server_oauth_token?
标签: android push-notification huawei-mobile-services huawei-push-notification