tinaya
tinaya
  • 发布:2022-06-08 13:19
  • 更新:2022-06-08 19:23
  • 阅读:238

【报Bug】restart后无法createMessage

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: 10

HBuilderX类型: 正式

HBuilderX版本号: 3.4.7

手机系统: Android

手机系统版本号: Android 8.1

手机厂商: 华为

手机机型: 荣耀8

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

示例代码:
    <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>    

        test2(){    
            plus.runtime.restart();    
        },    
        test(){    
            plus.push.createMessage('11111','2222')    
        },  

操作步骤:

先执行restart,重启后createMessage无效

预期结果:

可以createMessage

实际结果:

无法createMessage

bug描述:

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

2022-06-08 13:19 负责人:DCloud_Android_THB 分享
已邀请:
FullStack

FullStack - 【插件开发】【专治疑难杂症】【ios上架、马甲包、白包、过审、已成功上架过几百个】【多款插件已上架:https://ext.dcloud.net.cn/publisher?id=22130】【非诚勿扰】QQ:543610866

使用红米 Note 9 pro,andorid 11,确实存在问题;
使用iphone 12 pro max,ios15.5 验证,不存在问题。

  • tinaya (作者)

    所有Android都存在

    2022-06-08 17:00

  • tinaya (作者)

    如何解决???

    2022-06-08 17:01

DCloud_Android_THB

DCloud_Android_THB

https://ask.dcloud.net.cn/question/146470?notification_id=1094280 已经作答

要回复问题请先登录注册