문제

Is possible make a hybrid app in android that his login system is made with social networks and is inside a webview, and then, if it login is successful the app begin to work natively?

thanks folks in advance

도움이 되었습니까?

해결책

It's not only possible, but it's done that way!

Open a WebView, redirect the user to the authentication URL of your social network, and when the user navigates back after authentication, grab the token from the URL, close the WebView, and proceed with calling the API of the social network.

All social network SDKs, such as the Facebook SDK, work that way. If you want to look at how it's done, you can look at the classes of http://code.google.com/p/socialauth-android. It's an open source project that I am part of.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top