|
[插件开发]
部分机型点击通知栏做地址跳转后报错
[复制链接]
报错消息:Not allowed to load local resource: file:///android_asset/webkit/android-weberror.png
代码:
api.notification({
notify: {
title:'SevenStar',
content:'接收到'+informationNum+'位联系人的'+newCount+'条消息',
extra:isPersonalUser,
updateCurrent:true
},
vibrate:[10,100,20,200]
}, function(ret, err){
api.addEventListener({
name: 'noticeclicked'
}, function(ret){
if(ret){
var value = ret.value;
console.log("this is noticeInformation "+value);
if(value=='false'){
api.sendEvent({name:'selectedIndexChangeEvent',extra:{selectedIndex:0}});
api.openWin({
name: 'indexSupplier',
url: 'indexSupplier.html',
pageParam:{notificationChat:'notificationChat'}
});
}else{
api.openWin({
name: 'socialChatList',
url: 'html/personal/socialChat/socialChatList.html',
pageParam:{}
});
}
}
});
});
|
|