OtakuTravel
OtakuTravel
  • 发布:2024-03-26 16:37
  • 更新:2024-03-26 16:37
  • 阅读:188

按照官网要求配置permissionPhoneState以后,用户拒绝直接退出APP

分类:uni-app

按照官网要求配置permissionPhoneState以后,用户拒绝后直接退出APP,不符合国内应用市场要求,不能上架,怎么处理呢?

{  
    "version" : "3.1.136",  
    "prompt" : "template",  
    "title" : "服务协议和隐私政策",  
    "message" : "  请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/>  你可阅读<a href=\"xxx\">《服务协议》</a>和<a href=\"xxx\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",  
    "buttonAccept" : "同意",  
    "buttonRefuse" : "不同意并退出",  
    "hrefLoader" : "system",  
    "backToExit" : "false",  
    "disagreeMode" : {  
        "support" : false,  
        "loadNativePlugins" : false,  
        "visitorEntry" : false,  
        "showAlways" : false  
    },  
    "styles" : {  
        "backgroundColor" : "#ffffff",  
        "borderRadius" : "5px",  
        "title" : {  
            "color" : "#000000"  
        },  
        "buttonAccept" : {  
            "color" : "#007dff"  
        },  
        "buttonRefuse" : {  
            "color" : "#fa2a2d"  
        }  
    }  
}  
{  
    "name" : "xxx",  
    "appid" : "xxx",  
    "description" : "",  
    "versionName" : "3.1.136",  
    "versionCode" : 31136,  
    "transformPx" : false,  
    /* 5+App特有相关 */  
    "app-plus" : {  
        "usingComponents" : true,  
        "nvueCompiler" : "uni-app",  
        "compilerVersion" : 3,  
        "splashscreen" : {  
            "alwaysShowBeforeRender" : true,  
            "waiting" : true,  
            "autoclose" : true,  
            "delay" : 0  
        },  
        /* 模块配置 */  
        "modules" : {},  
        /* 应用发布信息 */  
        "distribute" : {  
            /* android打包配置 */  
            "android" : {  
                "permissionExternalStorage" : {  
                    "request" : "once",  
                    "prompt" : "应用保存运行状态等信息,需要获取读写手机存储(系统提示为访问设备上的照片、媒体内容和文件)权限,请允许。"  
                },  
                "permissionPhoneState" : {  
                    "request" : "once",  
                    "prompt" : "为保证您正常、安全地使用,需要获取设备识别码(部分手机提示为获取手机号码)使用权限,请允许。"  
                },  
                "abiFilters" : [ "armeabi-v7a", "arm64-v8a" ],  
                "autoSdkPermissions" : false,  
                "minSdkVersion" : 26,  
                "targetSdkVersion" : 30  
            },  
            /* ios打包配置 */  
            "ios" : {  
                "privacyDescription" : {  
                    "NSPhotoLibraryUsageDescription" : "是否访问相册",  
                    "NSPhotoLibraryAddUsageDescription" : "是否写入相册",  
                    "NSContactsUsageDescription" : "是否访问通讯录",  
                    "NSBluetoothPeripheralUsageDescription" : "是否访问蓝牙",  
                    "NSBluetoothAlwaysUsageDescription" : "是否访问蓝牙"  
                },  
                "idfa" : false,  
                "dSYMs" : false  
            },  
            "icons" : {  
                "android" : {  
                    "hdpi" : "unpackage/res/icons/72x72.png",  
                    "xhdpi" : "unpackage/res/icons/96x96.png",  
                    "xxhdpi" : "unpackage/res/icons/144x144.png",  
                    "xxxhdpi" : "unpackage/res/icons/192x192.png"  
                },  
                "ios" : {  
                    "appstore" : "unpackage/res/icons/1024x1024.png",  
                    "ipad" : {  
                        "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"  
                    },  
                    "iphone" : {  
                        "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"  
                    }  
                }  
            },  
            "splashscreen" : {  
                "useOriginalMsgbox" : true,  
                "androidStyle" : "common"  
            },  
            "sdkConfigs" : {  
                "ad" : {}  
            }  
        }  
    },  
    /* 快应用特有相关 */  
    "quickapp" : {},  
    /* 小程序特有相关 */  
    "mp-weixin" : {},  
    "mp-alipay" : {},  
    "mp-baidu" : {},  
    "mp-toutiao" : {},  
    "fallbackLocale" : "zh-Hans",  
    "locale" : "zh-Hans"  
}  
/* ios打包配置 */
2024-03-26 16:37 负责人:无 分享
已邀请:

要回复问题请先登录注册