3 ms·
Services like this are cool but as with Facebook, Twitter and other APIs, they often don't work properly in a web view. Consider this from the docs linked to in
by AshleysBrain 12y ago
Services like this are cool but as with Facebook, Twitter and other APIs, they often don't work properly in a web view. Consider this from the docs linked to in this submission:
> Clicking that button or link should then call gapi.auth.signin(), which will ask the user to sign in to your game in a separate window.
You can't open a separate window in a web view, so the sign in doesn't work.
Hybrid app development is a pretty big deal and PhoneGap looks set to go up another level with the latest web view improvements in iOS 8 and Android 5, but it still surprises me that many top APIs out there fail in a web view simply because they try to open a window or some other presumably easily worked around issue, and nobody bothered to test it there.
- pjmlp 12y agoMaybe because games are better written native?
- hayksaakian 12y agoApple and Google have every incentive to keep you on their native platform as opposed to hybrid apps. They would prefer you get frustrated trying to bridge the gap and work within their walled garden instead.
- lern_too_spel 12y agoIt's straightforward to handle this in a WebView. If PhoneGap doesn't handle it, file a bug with them. http://developer.android.com/reference/android/webkit/WebChromeClient.html#onCreateWindow(android.webkit.WebView http://developer.android.com/reference/android/webkit/WebChr..., boolean, boolean, android.os.Message) In this particular case, PhoneGap should integrate with AccountManager and not force users to enter their login credentials.