如何关闭xamarin中WebAuthenticator.AuthenticateAsync打开的浏览器?

anhgbhbe  于 2023-03-16  发布在  其他
关注(0)|答案(1)|浏览(116)

应用程序启动后,浏览器未关闭
从WebAuthenticator.AuthenticateAsync打开浏览器并启动应用程序后,浏览器仍会在后台打开。如果我单击Android移动的后退按钮,它将打开浏览器,这会使用户认为其仍在登录,这是不正确的。

o8x7eapl

o8x7eapl1#

github上有一个关于WebAuthenticator.AuthenticateAsync not closing Android browser的问题。
而这个问题在Xamarin.Essential nuget包版本1.6中得到了解决。你可以尝试将你项目中的包更新到最新版本。

相关问题