其他分享
首页 > 其他分享> > android-具有onPageFinished()和onPageStart()行为的自定义标签

android-具有onPageFinished()和onPageStart()行为的自定义标签

作者:互联网

我必须在使用具有OAuth功能的网络视图登录的应用程序中实现自定义标签.有没有办法在Chrome自定义标签中具有与onPageStart()和onPageFinished()相同的行为?

解决方法:

如果您使用Chrome自定义标签执行OAuth(顺便说一句好主意-比WebView更加安全和可用),则应考虑使用开源AppAuth库.

即使您不直接依赖该库,它也提供了一些使用Chrome自定义标签实现OAuth流程的好示例.

标签:chrome-custom-tabs,webview,android,appauth
来源: https://codeday.me/bug/20191027/1942409.html