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

5.0.3 iOS 增加 SceneDelegate 后微信登录跳转返回后不走回调方法,Android 无此问题。 #649

Open
realWayneZhang opened this issue Oct 25, 2024 · 2 comments

Comments

@realWayneZhang
Copy link

image

dart 代码:
image

image

image

@JarvanMo
Copy link
Member

SceneDelegate 我没测试过,可能不好用,但是我不太懂ios。我也没有appid什么的,测试不了。

@realWayneZhang
Copy link
Author

realWayneZhang commented Oct 25, 2024

Flutter 官方给 AppDelegate 写了关于生命周期的 FlutterApplicationLifeCycleDelegate,我也查阅和找了一圈,Flutter 官方并未给 SceneDelegate 写类似的协议或扩展,目前临时的解决方案是在自己创建的 SceneDelegate 写个通知:
image
然后在插件里注册监听:
image

能够让 iOS 端可以正常回调,目前测试是可行的。

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

2 participants