iOS qq第三方登录为什么没有安装qq的时候没有显示登录页面?

最近用qq的第三方登录, 按照qq的sdk一步一步下来,如果手机上有装qq,那没有问题,可以授权成功而且登陆。 但是如果没有安装qq,qq给的demo…
关注者
10
被浏览
8,177

4 个回答

QQ的最新版SDK,在用户手机没有安装QQ客户端的时候,会提示必须下载安装QQ客户端才能登录,是不会跳转到网页登录的。


Like this:


但是这样也有问题,这会违反苹果的相关审核条例。


Like this:


10.6 Details

We were required to install QQ before we could use your app. Apps should be able to run on launch, without requiring additional applications to be installed.

Specifically, if we chose to log in via QQ, we were required to install QQ before we could use your app.

Next Steps

Please revise your app so that a user does not need to install another app. If your app requires authentication before use, please ensure that all methods can authenticate users from within your app.


If you feel that this rejection was made in error, and believe your app is in compliance with the App Store Review Guidelines, you may submit an appeal to the App Review Board. Please allow up to one business day for an initial response from the App Review Board.


看加粗的部分,也就是说,如果你的应用是在用户使用前就要求登录的话,必须要确保所有的登录方式都可以在你的应用内进行。


呃,简单的说就是审核不过啦。


现在我们通用的做法是:

判断用户手机是否安装了QQ客户端,如果没安装,就把QQ登录的入口隐藏掉


恩,挨千刀的QQ ╭(╯^╰)╮

由于QQ近期进行整体安全升级,原有部分第三方开发者通过拼接登录url或调起H5登录的方式,存在重大安全风险,1月31日起,第三方应用使用QQ登录时,仅可使用QQ或tim进行一键授权登录,其他所有登录方式将全部停止支持。

具体方案:

1.移动应用使用openSDK时,直接调起一键登录,如果未安装qq或tim则 提示进行下载

2.移动应用在浏览器内使用QQ登录时,直接调起一键登录,若手机内未 安装qq或tim则提示进行下载

为什么?