苹果审核reject理由大全(12):qq、微信的登录、分享等功能

本文讨论了AppStore对于用户体验的要求,特别是关于使用QQ/微信第三方登录功能的场景。文章提出了两种解决方案:一是自主判断QQ/微信是否已安装;二是提供web形式的替代方案。

打回理由

From Apple
10.6 - Apple and our customers place a high value on simple, refined, creative, well thought through interfaces. They take more work but are worth it. Apple sets a high bar. If your user interface is complex or less than very good, it may be rejected
10.6 Details

We were required to install the QQ/WeChat app before we can log-in via QQ/WeChat. The user should be able to log-in and access their account, without requiring additional applications to be installed.

Next Steps

If you choose to allow users to log-in via QQ/WeChat, please use methods that can authenticate users from within your app, such as a native web-view.

这里写图片描述

应用中有使用 QQ 微信 的第三方功能。在手机未安装微信并且使用微信功能时,我们提示玩家进行微信安装。审核人员认为这不符合appstore要求的用户体验。

解决方案

有两种解决思路

1.在应用中自主判断qq、微信是否安装,未安装时不显示相关功能
2.尽力为用户提供其他方法,比如web形式的功能,当qq未安装时仍可以使用相关功能
提供的参考引用中提及微信小程序分享QQ好友的方法。通常来说,微信小程序本身并没有直接分享QQ好友的官方标准功能,因为微信QQ属于不同的生态体系。不过可以通过一些间接的方式实现: 1. **生成小程序码分享**:调用微信 API `getWXACodeUnlimit`(https://developers.weixin.qq.com/miniprogram/dev/api-backend/getWXACodeUnlimit.html)生成小程序码,将小程序码保存为图片,让用户手动将图片分享QQ 聊天窗口,对方长按图片识别小程序码进入小程序 [^3]。 2. **分享页面链接**:如果小程序支持生成网页版链接,可以将链接复制,然后在 QQ 中粘贴分享给好友。 以下是生成小程序码的示例代码(以 Node.js 为例): ```javascript const axios = require('axios'); const fs = require('fs'); // 获取 access_token async function getAccessToken(appid, secret) { const url = `https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=${appid}&secret=${secret}`; const response = await axios.get(url); return response.data.access_token; } // 生成小程序码 async function getWXACodeUnlimit(access_token, scene, page) { const url = `https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=${access_token}`; const response = await axios.post(url, { scene, page }, { responseType: 'stream' }); const writer = fs.createWriteStream('wxacode.png'); response.data.pipe(writer); return new Promise((resolve, reject) => { writer.on('finish', resolve); writer.on('error', reject); }); } // 使用示例 (async () => { const appid = 'your_appid'; const secret = 'your_secret'; const access_token = await getAccessToken(appid, secret); const scene = 'your_scene'; const page = 'pages/index/index'; await getWXACodeUnlimit(access_token, scene, page); console.log('小程序码生成成功'); })(); ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值