tinaya
tinaya
  • 发布:2022-06-06 18:17
  • 更新:2022-06-20 17:08
  • 阅读:435

restart后无法createMessage

分类:uni-app

plus.runtime.restart后,使用plus.push.createMessage无法创建本地消息,需要杀死APP才行。

Hbuild版本:任何版本都有,我的版本:3.4.7.20220422
Android手机: 任何手机

代码(基于hello uniapp):
首页增加内容:

    <view  class="uni-header-logo" @tap="test2">  
    	000<image class="uni-header-image" src="/static/componentIndex.png"></image>  
    </view>  
    <view  class="uni-header-logo" @tap="test">  
    	111<image class="uni-header-image" src="/static/componentIndex.png"></image>  
    </view>  

methods:

        test2(){  
            plus.runtime.restart();  
        },  
        test(){  
            plus.push.createMessage('11111','2222')  
        },  
2022-06-06 18:17 负责人:DCloud_Android_THB 分享
已邀请:
tinaya

tinaya (作者) - 学习学习在学习

hello-uniapp
文件路径: pages\tabBar\component

DCloud_Android_THB

DCloud_Android_THB

3.5.0已修复此问题。

要回复问题请先登录注册