华为审核被拒:
您的应用在运行时,未见向用户告知权限申请的目的,向用户索取(相机存)等权限,不符合华为应用市场审核标准。

在这里插入图片描述

<uni-popup ref="perpopup" type="center" :mask-click='false'>
				<view class="permissions_box">
					当您使用APP时,会在资料编辑、投诉、发布、意见反馈时访问存贮权限,不授权上述权限,不影响APP其他功能使用。
				</view>
			</uni-popup>

//比如,点击编辑头像的方法
//android.permission.READ_EXTERNAL_STORAGE是访问权限
panduan(){
					var that = this
					var platform = uni.getSystemInfoSync().platform
					if (platform=='android'){
						plus.android.checkPermission(
						        'android.permission.READ_EXTERNAL_STORAGE',
						        granted => {
						          if (granted.checkResult==-1){
						          	//弹出
									 that.$refs.perpopup.open('top')
								  }else{
									//执行你有权限后的方法
								  }
						        },
						        error => {
						          console.error('Error checking permission:', error.message);
						        }
						      );
						plus.android.requestPermissions(['android.permission.READ_EXTERNAL_STORAGE'],
							(e) => {
							//关闭
								that.$refs.perpopup.close()
								if (e.granted.length>0){
										//执行你有权限后的方法
								}
						})
					
					}else{
							//执行你有权限后的方法 ios
					}
					
			},
Logo

AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。

更多推荐