feat: init uni-5plus app

feat/uniplus
moonrailgun 3 years ago
parent 8f587887ee
commit 5d60411f52

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

@ -0,0 +1,3 @@
{
"prompt" : "template"
}

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title></title>
<script type="text/javascript" src="js/index.js"></script>
</head>
<body>
</body>
</html>

@ -0,0 +1,10 @@
document.addEventListener('plusready', function () {
console.log(
'所有plus api都应该在此事件发生后调用否则会出现plus is undefined。'
);
const w = plus.webview.create('https://nightly.paw.msgbyte.com/');
w.show();
const clientInfo = plus.push.getClientInfo();
console.log('clientInfo', JSON.stringify(clientInfo));
});

@ -0,0 +1,231 @@
{
"@platforms" : [ "android", "iPhone", "iPad" ],
"id" : "H51EDBA1C", /**/
"name" : "tailchat-lite", /**/
"version" : {
"name" : "1.0", /**/
"code" : "100"
},
"description" : "", /**/
"icons" : {
"72" : "icon.png"
},
"launch_path" : "index.html", /*index.htmlhttp://https://*/
"developer" : {
"name" : "", /**/
"email" : "", /**/
"url" : "" /**/
},
"permissions" : {
"Accelerometer" : {
"description" : "访问加速度感应器"
},
"Audio" : {
"description" : "访问麦克风"
},
"Cache" : {
"description" : "管理应用缓存"
},
"Camera" : {
"description" : "访问摄像头"
},
"Console" : {
"description" : "跟踪调试输出日志"
},
"Device" : {
"description" : "访问设备信息"
},
"Downloader" : {
"description" : "文件下载管理"
},
"Events" : {
"description" : "应用扩展事件"
},
"File" : {
"description" : "访问本地文件系统"
},
"Gallery" : {
"description" : "访问系统相册"
},
"Invocation" : {
"description" : "使用Native.js能力"
},
"Orientation" : {
"description" : "访问方向感应器"
},
"Proximity" : {
"description" : "访问距离感应器"
},
"Storage" : {
"description" : "管理应用本地数据"
},
"Uploader" : {
"description" : "管理文件上传任务"
},
"Runtime" : {
"description" : "访问运行期环境"
},
"XMLHttpRequest" : {
"description" : "跨域网络访问"
},
"Zip" : {
"description" : "文件压缩与解压缩"
},
"Barcode" : {
"description" : "管理二维码扫描插件"
},
"Webview" : {
"description" : "窗口管理"
},
"NativeUI" : {
"description" : "原生UI控件"
},
"Navigator" : {
"description" : "浏览器信息"
},
"NativeObj" : {
"description" : "原生对象"
},
"Push" : {},
"Webview-x5" : {}
},
"plus" : {
"splashscreen" : {
"autoclose" : true, /*truefalseplus.navigator.closeSplashscreen()*/
"waiting" : true /*truefalse*/
},
"popGesture" : "close", /*Webview"none""hide"Webviewhttp://ask.dcloud.net.cn/article/102*/
"runmode" : "normal", /*liberatenormalliberateAndroidFile API访_www*/
"signature" : "Sk9JTiBVUyBtYWlsdG86aHIyMDEzQGRjbG91ZC5pbw==", /*使*/
"distribute" : {
"apple" : {
"appid" : "", /*iOSappidio.dcloud.HelloH5*/
"mobileprovision" : "", /*iOS*/
"password" : "", /*iOS*/
"p12" : "", /*iOS*/
"devices" : "universal", /*iOSiphone/ipad/universal*/
"frameworks" : [] /*Native.jsObjective-c APIFrameWorkGameCenter"GameKit.framework"*/
},
"google" : {
"packagename" : "", /*Androidio.dcloud.HelloH5*/
"keystore" : "", /*Android使*/
"password" : "", /*Android使*/
"aliasname" : "", /*Android使*/
"permissions" : [
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
]
},
/*使Native.jsAPI使*/
"orientation" : [ "portrait-primary" ], /*portrait-primaryportrait-secondarylandscape-primarylandscape-secondary*/
"icons" : {
"ios" : {
"prerendered" : true, /*iOS6*/
"auto" : "", /*512x512*/
"iphone" : {
"normal" : "", /*iPhone3/3GS57x57*/
"retina" : "", /*iPhone4114x114*/
"retina7" : "", /*iPhone4S/5/6120x120*/
"retina8" : "", /*iPhone6 Plus180x180*/
"spotlight-normal" : "", /*iPhone3/3GS Spotlight29x29*/
"spotlight-retina" : "", /*iPhone4 Spotlight58x58*/
"spotlight-retina7" : "", /*iPhone4S/5/6 Spotlight80x80*/
"settings-normal" : "", /*iPhone429x29*/
"settings-retina" : "", /*iPhone4S/5/658x58*/
"settings-retina8" : "", /*iPhone6Plus87x87*/
"app@2x" : "unpackage/res/icons/120x120.png",
"app@3x" : "unpackage/res/icons/180x180.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"notification@3x" : "unpackage/res/icons/60x60.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"settings@3x" : "unpackage/res/icons/87x87.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png",
"spotlight@3x" : "unpackage/res/icons/120x120.png"
},
"ipad" : {
"normal" : "", /*iPad72x72*/
"retina" : "", /*iPad144x144*/
"normal7" : "", /*iPad iOS776x76*/
"retina7" : "", /*iPad iOS7152x152*/
"spotlight-normal" : "", /*iPad Spotlight50x50*/
"spotlight-retina" : "", /*iPadSpotlight100x100*/
"spotlight-normal7" : "", /*iPad iOS7 Spotlight40x40*/
"spotlight-retina7" : "", /*iPad iOS7Spotlight80x80*/
"settings-normal" : "", /*iPad29x29*/
"settings-retina" : "", /*iPad58x58*/
"app" : "unpackage/res/icons/76x76.png",
"app@2x" : "unpackage/res/icons/152x152.png",
"notification" : "unpackage/res/icons/20x20.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"proapp@2x" : "unpackage/res/icons/167x167.png",
"settings" : "unpackage/res/icons/29x29.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"spotlight" : "unpackage/res/icons/40x40.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png"
},
"appstore" : "unpackage/res/icons/1024x1024.png"
},
"android" : {
"mdpi" : "", /*48x48*/
"ldpi" : "", /*48x48*/
"hdpi" : "unpackage/res/icons/72x72.png", /*72x72*/
"xhdpi" : "unpackage/res/icons/96x96.png", /*720P96x96*/
"xxhdpi" : "unpackage/res/icons/144x144.png", /*1080P 144x144*/
"xxxhdpi" : "unpackage/res/icons/192x192.png"
}
},
"splashscreen" : {
"ios" : {
"iphone" : {
"default" : "", /*iPhone3320x480*/
"retina35" : "", /*3.5(iPhone4)640x960*/
"retina40" : "", /*4.0 (iPhone5/iPhone5s)640x1136*/
"retina47" : "", /*4.7 (iPhone6)750x1334*/
"retina55" : "", /*5.5 (iPhone6 Plus)1242x2208*/
"retina55l" : "" /*5.5 (iPhone6 Plus)2208x1242*/
},
"ipad" : {
"portrait" : "", /*iPad768x1004*/
"portrait-retina" : "", /*iPad1536x2008*/
"landscape" : "", /*iPad1024x748*/
"landscape-retina" : "", /*iPad2048x1496*/
"portrait7" : "", /*iPad iOS7768x1024*/
"portrait-retina7" : "", /*iPad iOS71536x2048*/
"landscape7" : "", /*iPad iOS71024x768*/
"landscape-retina7" : "" /*iPad iOS72048x1536*/
}
},
"android" : {
"mdpi" : "", /*240x282*/
"ldpi" : "", /*320x442*/
"hdpi" : "", /*480x762*/
"xhdpi" : "", /*720P720x1242*/
"xxhdpi" : "" /*1080P1080x1882*/
},
"androidStyle" : "common",
"useOriginalMsgbox" : true
},
"plugins" : {
"push" : {
"unipush" : {}
}
}
}
},
"screenOrientation" : [ "portrait-primary" ]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 896 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

@ -6,12 +6,13 @@ App({
* 当wap2app初始化完成时会触发 onLaunch
*/
onLaunch: function () {
console.log('launch');
uni.onPushMessage((res) => {
console.log('收到推送消息:', res); //监听推送消息
});
const clientInfo = plus.push.getClientInfo();
console.log(clientInfo);
uni.getPushClientId({
success: (res) => {
let push_clientid = res.cid;
@ -38,6 +39,8 @@ App({
Page('__W2A__nightly.paw.msgbyte.com', {
//首页扩展配置
onShow: function () {},
onShow: function () {
console.log('__W2A__nightly.paw.msgbyte.com');
},
onClose: function () {},
});

Loading…
Cancel
Save