美文网首页iOS ReviewiOS Developer上海恩美路演
iOS APP审核防止被拒-----第三方登录篇

iOS APP审核防止被拒-----第三方登录篇

作者: 半缘魔君 | 来源:发表于2016-10-14 17:15 被阅读2322次

    最近在上传appStore的时候遇到了一个问题--在用微信第三方登录的时候,如果没有安装微信,苹果拒绝提示.这个问题很多人遇到过了.但是我还是想说说过程.

    第一次被拒:我们的第三方登录是用的ShareSDK,我们没有做"对于没有安装微信的处理",点击微信登录后的界面是ShareSDK的固有H5页面

    Design - 4.2.3
        We were required to install the Wechat apps before
    we can log-in via 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 Wechat, 
    please use methods that can authenticate users from 
    within your app, such as a native web-view.
    

    后来我们讨论后,结果是,在未安装微信时,点击微信登录的按钮提示微信没有安装,有一个按钮是"确定",点击确定什么都不干.结果就是迎来了第二次被拒.
    苹果给发的邮件是:

    Design - 4.2.3
        We were required to install WeChat before we could
     use your app. Apps should be able to run on 
     launch, without requiring additional applications 
     to be installed.
    Next Steps
        Please revise your app to ensure that users can use
     it upon launch. If your app requires 
     authentication before use, please use methods that 
     can authenticate users from within your app.
    

    后来我们谈论后,结果是,把未安装微信时,微信登录的按钮做成不可点击的灰置.结果就是迎来了第三次被拒.
    苹果给发的邮件是:

    Design - 4.2.3
        We were required to install WeChat before we could
     use your app. Apps should be able to run on 
     launch, without requiring additional applications 
     to be installed.
    Next Steps
        Please revise your app to ensure that users can use
     it upon launch. If your app requires 
     authentication before use, please use methods that 
     can authenticate users from within your app.
    

    我们怒了,商量之后,决定在未安装微信时隐藏微信登录图标,结果..结果终于通过了,上线了.

    另外附上如何判断微信有没有安装的API

      //需要引入的头文件和库
      #import <ShareSDK/ShareSDK.h>
      #import "WXApi.h"
      //判断安装微信
     if ([WXApi isWXAppInstalled]){
         //安装了微信的处理
     } else {
         //没有安装微信的处理
     }

    相关文章

      网友评论

      • 龙猫大虾:微信的这个api :+(BOOL) isWXAppInstalled; 怎么安装了微信还是返回NO的 真是烦呀
        半缘魔君:试试这个解决办法,https://blog.csdn.net/saw471/article/details/54378619
      • Zero_Jin:判断隐藏后,还是被拒,这是为毛啊? 而且 UC 客户端登录,没有安装的时候,都是弹得提醒框,他们为啥能上线
        半缘魔君:@在路上_牛瑶 如果你们测试通过了,应该不会显示啊
        _阿牛_:我们判断隐藏了,还是被拒绝,苹果那边给我们的截图怎么还有微信登录那个按钮呢?我们测算时没有微信登录按钮的!!已经被拒绝3次了
        半缘魔君:最近apple新规定,不能隐藏了,说是体验不一致。目前我们的办法是不要QQ登录,微信接入手机号验证码登录
      • 阿拉斯加的狗:导入头文件 #import <ShareSDKExtension/ShareSDK+Extension.h>
        然后:[ShareSDK isClientInstalled:SSDKPlatformTypeWechat]; YES 已安装,NO 未安装

        上个方法没用
        半缘魔君:@阿拉斯加的狗 :+1: :+1:
        阿拉斯加的狗:@半缘魔君 搞定了哈 强哥 哈哈哈哈哈哈哈哈哈哈哈哈哈
        半缘魔君:我这边是没有问题的,你这个方法是ShareSDK的API,其实质还是调用的 微信的API

      本文标题:iOS APP审核防止被拒-----第三方登录篇

      本文链接:https://www.haomeiwen.com/subject/fwxnyttx.html