按照文档接入了android 的推送sdk,使用leancloud在线推送,控制台能看到消息
D/AVConnectionManager: downlink: cmd: data
appId: "*************-gzGzoHsz"
installationId: "****************这里是id"
service: 0
dataMessage {
ids: "aGxUcqFut8KAW344"
msg {
data: "{\"alert\":\"hi~\",\"expirationtime\":\"2019-09-06T17:43:10.400Z\"}"
}
}
D/AVStandardWebSocketClient: uplink : cmd: ack
installationId: "*******这里是id"
ackMessage {
ids: "aGxUcqFut8KAW344"
}
但是就是无法在通知栏显示,出现以下错误:
Fail to post notification on channel ""