From 4705e8740cc5d5996877692b05902a82fc068ded Mon Sep 17 00:00:00 2001 From: Dread <8791926+dread@user.noreply.gitee.com> Date: Mon, 13 Dec 2021 09:48:05 +0800 Subject: [PATCH] 1213 --- App.vue | 2 ++ manifest.json | 38 +++++++++++++++++++++++++++++++++++--- 2 files changed, 37 insertions(+), 3 deletions(-) diff --git a/App.vue b/App.vue index 18625df..43f07fc 100644 --- a/App.vue +++ b/App.vue @@ -18,6 +18,8 @@ }, }, onLaunch: function() { + const clientInfo = plus.push.getClientInfo() + console.log(clientInfo,'APP的CID') // #ifdef APP-PLUS this.appVersion() this.getIp(); diff --git a/manifest.json b/manifest.json index cc19238..a89a17a 100644 --- a/manifest.json +++ b/manifest.json @@ -26,7 +26,8 @@ /* 模块配置 */ "modules" : { "FaceID" : {}, - "Fingerprint" : {} + "Fingerprint" : {}, + "Push" : {} }, /* 应用发布信息 */ "distribute" : { @@ -52,10 +53,19 @@ ] }, /* ios打包配置 */ - "ios" : {}, + "ios" : { + "privacyDescription" : { + "NSCameraUsageDescription" : "BitCooo requires camera permission", + "NSPhotoLibraryUsageDescription" : "BitCooo needs to use album permissions", + "NSPhotoLibraryAddUsageDescription" : "BitCooo needs to use album permissions" + } + }, /* SDK配置 */ "sdkConfigs" : { - "ad" : {} + "ad" : {}, + "push" : { + "unipush" : {} + } }, "icons" : { "android" : { @@ -100,6 +110,28 @@ } } }, + "locales":{ + "en": { // 英文 + "name": "BitCooo", // 应用名称 + "android": { + "strings": { //Android平台自定义字符串 + "CustomKey": "CustomValue" + //... + } + }, + "ios": { + "privacyDescription" : { + "NSCameraUsageDescription" : "BitCooo requires camera permission", + "NSPhotoLibraryUsageDescription" : "BitCooo needs to use album permissions", + "NSPhotoLibraryAddUsageDescription" : "BitCooo needs to use album permissions" + }, + "infoPlist": { //iOS平台自定义InfoPlist.strings + "CustomKey": "CustomValue" + //... + } + } + } + }, /* 快应用特有相关 */ "quickapp" : {}, /* 小程序特有相关 */