How to Login into Gmail using OAuth in Android Application?

后端 未结 3 2210
难免孤独
难免孤独 2020-12-18 15:37

I am Developing an application which uses Login to Gmail.I gone through all tutorials,stackoverflow questions which is tagged under OAuth 2.0 and documents that

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-18 16:17

    Consider using "localhost:port" as the redirect uri instead of urn:ietf:wg:oauth:2.0:oob& (for more details refer to https://developers.google.com/youtube/v3/guides/authentication#installed-apps) and trap this URL being loaded in the webview in the callback: public boolean shouldOverrideUrlLoading (WebView view, String url).

提交回复
热议问题