diff --git a/pages/API/uni-push/uni-push.uvue b/pages/API/uni-push/uni-push.uvue index 3db71bdaaf6db7519b4838742d2e8d58778fe00a..941270b3afbf0f7bb95903de6899be62e2f1bf20 100644 --- a/pages/API/uni-push/uni-push.uvue +++ b/pages/API/uni-push/uni-push.uvue @@ -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