uni-app restart后无法createMessage
uni-app restart后无法createMessage
开发环境 | 版本号 | 项目创建方式 |
---|---|---|
Windows | 10 | 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才行。
5 回复
使用红米 Note 9 pro,andorid 11,确实存在问题;
使用iphone 12 pro max,ios15.5 验证,不存在问题。
所有Android都存在
如何解决???