打包时候的提示
为落实《网络安全法》《消费者权益保护法》的要求,有效治理App强制授权、过度索权、超范围收集个人信息等现象,保障个人信息安全,国内各大应用市场都加强了应用审核,要求应用必须符合相关政策才能上架,当前应用缺少相关配置,查看如何解决。不上架国内应用市场无需处理。
求大佬们帮忙看看
我配置了隐私弹窗,App 权限配置我也是按照 文档一个一个配置的,改过之后 就出现了打包提示框说缺少相关配置,不明白为什么
这是 manifest.json的配置
{
"name" : "",
"appid" : "",
"description" : "",
"versionName" : "2.2.3",
"versionCode" : 1,
"transformPx" : false,
/* 5+App特有相关 */
"h5" : {
"devServer" : {
"https" : false,
"proxy" : {
"/api" : {
"target" : "",
"changeOrigin" : true,
"secure" : false,
"pathRewrite" : {
// "pathRewrite"
"^/api" : ""
}
}
},
"port" : 8080
},
"uniStatistics" : {
"enable" : true
}
},
"app-plus" : {
"usingComponents" : true,
"nvueStyleCompiler" : "uni-app",
"compilerVersion" : 3,
"compatible" : {
"runtimeVersion" : "3.3.13", //根据实际情况填写
"compilerVersion" : "3.3.13" //根据实际情况填写
},
"splashscreen" : {
"alwaysShowBeforeRender" : true,
"waiting" : false,
"autoclose" : true,
"delay" : 0
},
/* 模块配置 */
"modules" : {
"Push" : {},
"Share" : {},
"OAuth" : {}
},
/* 应用发布信息 */
"distribute" : {
/* android打包配置 */
"android" : {
"permissions" : [
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<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.GET_ACCOUNTS\"/>",
"<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\"/>"
],
"schemes" : "",
"autoSdkPermissions" : true,
"abiFilters" : [ "armeabi-v7a", "x86" ]
},
/* ios打包配置 */
"ios" : {
"idfa" : false
},
/* SDK配置 */
"sdkConfigs" : {
"oauth" : {
"weixin" : {
"appid" : "",
"appsecret" : "",
"UniversalLinks" : ""
}
},
"share" : {
"weixin" : {
"appid" : "",
"UniversalLinks" : ""
}
},
"push" : {
"unipush" : {}
}
},
"splashscreen" : {
"useOriginalMsgbox" : true,
"androidStyle" : "default",
"android" : {
"hdpi" : "appBuildImg/480.9.png",
"xhdpi" : "appBuildImg/720.9.png",
"xxhdpi" : "appBuildImg/1080.9.png"
},
"iosStyle" : "common"
},
"icons" : {
"android" : {
"hdpi" : "appBuildImg/logo.png",
"xhdpi" : "appBuildImg/logo.png",
"xxhdpi" : "appBuildImg/logo.png",
"xxxhdpi" : "appBuildImg/logo.png"
},
"ios" : {
"appstore" : "appBuildImg/logo.png",
"iphone" : {
"app@2x" : "",
"app@3x" : "",
"spotlight@2x" : "",
"spotlight@3x" : "",
"settings@2x" : "",
"settings@3x" : "",
"notification@2x" : "",
"notification@3x" : ""
},
"ipad" : {
"app" : "",
"app@2x" : "",
"proapp@2x" : "",
"spotlight" : "",
"spotlight@2x" : "",
"settings" : "",
"settings@2x" : "",
"notification" : "",
"notification@2x" : ""
}
}
}
},
"uniStatistics" : {
"enable" : true
},
"nativePlugins" : {}
},
/* 快应用特有相关 */
"quickapp" : {},
/* 小程序特有相关 */
"mp-weixin" : {
"appid" : "",
"setting" : {
"urlCheck" : false
},
"optimization" : {
"subPackages" : true
},
"usingComponents" : true,
"permission" : {},
"uniStatistics" : {
"enable" : true
}
},
"mp-alipay" : {
"usingComponents" : true,
"uniStatistics" : {
"enable" : true
}
},
"mp-baidu" : {
"appid" : "",
"usingComponents" : true,
"uniStatistics" : {
"enable" : true
}
},
"mp-toutiao" : {
"usingComponents" : true,
"uniStatistics" : {
"enable" : true
}
},
"uniStatistics" : {
"enable" : true
},
"vueVersion" : "2",
"mp-kuaishou" : {
"uniStatistics" : {
"enable" : true
}
},
"mp-lark" : {
"uniStatistics" : {
"enable" : true
}
},
"mp-qq" : {
"uniStatistics" : {
"enable" : true
}
}
}
/* ios打包配置 *//* SDK配置 */
2 个回复
2***@qq.com (作者)
解决了
uni-app项目
在 "app-plus" -> "privacy" 节点下添加 prompt节点
5+ App项目
在 "plus" -> "privacy" 节点下添加 prompt节点
胖虎777
我在androidPrivacy.json里写的结果在真机时2成概率不弹出,后来在manifest.json里再写一次,双保险了总算可以弹出。不知道为什么,那直接写manifest.json里就好了,为什么还弄个androidPrivacy.json出来。一开始不知道自己在基座上运行没问题,提交审核的时候我真机测试可以弹出,到审核打回来把视频传给我,在他们的机器上就没弹出导致审核不通过。