style: update w2a config

pull/64/head
moonrailgun 2 years ago
parent feab2c240c
commit ce8ee59541

@ -0,0 +1,2 @@
unpackage/cache
unpackage/release

@ -1,12 +1,26 @@
App({
options: {
debug: false,
debug: true,
},
/**
* 当wap2app初始化完成时会触发 onLaunch
*/
onLaunch: function () {
console.log('launch');
uni.onPushMessage((res) => {
console.log('收到推送消息:', res); //监听推送消息
});
uni.getPushClientId({
success: (res) => {
let push_clientid = res.cid;
console.log('客户端推送标识:', push_clientid);
},
fail(err) {
console.log(err);
},
});
},
/**
* 当wap2app启动或从后台进入前台显示会触发 onShow
@ -21,6 +35,7 @@ App({
console.log('hide');
},
});
Page('__W2A__nightly.paw.msgbyte.com', {
//首页扩展配置
onShow: function () {},

@ -2,12 +2,12 @@
"@platforms" : [ "android", "iPhone", "iPad" ],
"id" : "__W2A__nightly.paw.msgbyte.com",
/**/
"name" : "tailchat",
"name" : "tailchat-nightly",
/**/
"version" : {
"name" : "1.0",
/**/
"code" : ""
"code" : 1
},
"description" : "",
/**/
@ -52,9 +52,9 @@
"NativeUI" : {},
"Navigator" : {},
"NativeObj" : {},
"Push" : {},
"UIWebview" : {},
"Camera" : {}
"Camera" : {},
"Push" : {}
},
"plus" : {
"kernel" : {

Loading…
Cancel
Save