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

update: unipush测试例

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