Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rivacyBefore: '登录即同意', privacyEnd: '并授权获取本机号码', checkboxHidden: false, privacyState: false, appPrivacyOneName: '《用户协议》', #28

Closed
jiangdianlong521 opened this issue Nov 15, 2021 · 8 comments

Comments

@jiangdianlong521
Copy link

android 正常
ios checkbox = false 点击登录无反应 checkbox 勾选成功可以正常登录
react-native 0.63.3
ios iphone 12

@yoonzm
Copy link
Owner

yoonzm commented Nov 15, 2021

@jiangdianlong521
Copy link
Author

@yoonzm
checkboxHidden: false,
privacyState: false,
可以复现

@yoonzm
Copy link
Owner

yoonzm commented Nov 15, 2021

@jiangdianlong521 checkboxHidden设置为false则代表需要勾选同意协议后才能登录,逻辑没问题呀

@jiangdianlong521
Copy link
Author

@yoonzm checkboxHidden = false 点击登录没有任何提示。 android 提示 未同意协议

@yoonzm
Copy link
Owner

yoonzm commented Nov 15, 2021

@jiangdianlong521 好的,这个我看下能否和安卓保持一致

@jiangdianlong521
Copy link
Author

@yoonzm 辛苦大佬~大佬yyds

@Xiaobenchu
Copy link

@yoonzm 相同的问题,iOS不勾选同意协议,tips提示不出现,安卓能够正确的出现,现在有解决问题的方案吗

@Jeijie
Copy link

Jeijie commented Mar 22, 2022

我这边可以通过逻辑解决IOS不勾选同意协议没有tips的问题,大家可以参考下:

  1. 给自己组件一个变量checked为false,
  2. 在监听OnePass.addListener(OnePass.EVENTS.onTokenSuccess里面判断numberCode ===OnePass.RESULT_CODES["700003"]的话就把checked设为!checked
  3. 在监听OnePass.addListener(OnePass.EVENTS.onTokenSuccess里面判断
    numberCode === OnePass.RESULT_CODES["700002"]的话根据平台是ios和checked是否为false的话来提示tips

@yoonzm yoonzm pinned this issue Mar 26, 2022
@yoonzm yoonzm closed this as completed Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants