提交 a875e4cd 编写于 作者: taohebin@dcloud.io's avatar taohebin@dcloud.io

update: unipush测试例

上级 560944ff
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
const handleCreateChannel = (showToast: boolean) => { const handleCreateChannel = (showToast: boolean) => {
// #ifdef APP-ANDROID // #ifdef APP-ANDROID
const manager = uni.getChannelManager() const manager = uni.getPushChannelManager()
manager.setPushChannel({ manager.setPushChannel({
channelId: "msg-pass", channelId: "msg-pass",
channelDesc: "留言审核通过", channelDesc: "留言审核通过",
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
} }
const handleGetAllChannels = () => { const handleGetAllChannels = () => {
// #ifdef APP-ANDROID // #ifdef APP-ANDROID
const manager = uni.getChannelManager() const manager = uni.getPushChannelManager()
console.log("channels : " + manager.getAllChannels()); console.log("channels : " + manager.getAllChannels());
channelInfo.value = `渠道信息为: \n ${manager.getAllChannels()}` channelInfo.value = `渠道信息为: \n ${manager.getAllChannels()}`
// #endif // #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册