|

楼主 |
发表于 2017-5-16 14:26:52
|
显示全部楼层
Model.prototype.modelLoad = function(event) {
justep.Shell.showPage("main");
StatusBar.styleBlackTranslucent();
//start_mqtt_message();
// StatusBar.backgroundColorByName("white");
//alert("file:///android_asset/www" + require.toUrl("$UI/JdptApp/img/Compass.png"));
//
//if (device.platform == "And roid"){
notification.schedule({
id : 'mid_2'+msg_cnt, // you don't have to use an int by the way.. '1a' or just 'a' would be fine
title : "最新消息1",
text : "明天放假啦!!终于放假了",
icon : window.location.origin+require.toUrl("$UI/JdptApp/img/cp_app_forbidden_goods_2x.png"),
//icon : "file:///android_asset/www" + require.toUrl("$UI/JdptApp/img/Compass.png") //sym_def_app_icon"
//icon:"file:///storage/emulated/0/Android/data/com.postjd.jdpt/ha.png"
//icon:"file:///Android/data/com.postjd.jdpt/ha.png"
smallIcon : "res://ic_notification_overlay"
});
//window.open("file:///android_asset/www" + require.toUrl("$UI/JdptApp/img/Compass.png"));
//}
msg_cnt ++;
};
是参考着做的,ios手机版本是10.2的 苹果其他手机也不行 |
|