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

Universal link 微信回调和pingpp回调冲突问题 #106

Open
szuwest opened this issue Sep 24, 2021 · 1 comment
Open

Universal link 微信回调和pingpp回调冲突问题 #106

szuwest opened this issue Sep 24, 2021 · 1 comment

Comments

@szuwest
Copy link

szuwest commented Sep 24, 2021

pingpp版本2.2.32
微信WechatOpenSDK 1.8.7

在 func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {}

在这方法里,如果先处理WXApi.handleOpenUniversalLink,后调用Pingpp.handleContinue,则pingpp支付回调不会调用。
如果先处理Pingpp.handleContinue,后处理WXApi.handleOpenUniversalLink,则微信授权登陆没法回调。

注意我们调用WXApi.registerApp(WX_APPID, universalLink: kUniversalWeChat)
和Pingpp.setUniversalLink(kUniversalPingpp),设置是 不同的URL,都是有效的能拉起APP的URL。按道理不会冲突才对

请问这问题如何解决

@szuwest
Copy link
Author

szuwest commented Sep 25, 2021

我现在的解决方法是两个回调都调用,
即WXApi.handleOpenUniversalLink和Pingpp.handleContinue都调用。
不过我不确定这样做会不会有什么副作用。暂时解决了我的问题

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

1 participant