# Ionic + Google oauth webview not supported

**URL:** <https://forum.ionicframework.com/t/ionic-google-oauth-webview-not-supported/70036>\
**Category:** cordova\
**Created:** [November 13, 2016, 11:58am UTC](https://forum.ionicframework.com/t/ionic-google-oauth-webview-not-supported/70036 "2016-11-13T11:58:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikgde](https://avatars.discourse-cdn.com/v4/letter/n/49beb7/32.png) [@nikgde](https://forum.ionicframework.com/u/nikgde)\
**Post date:** [November 13, 2016, 11:58am UTC](https://forum.ionicframework.com/t/ionic-google-oauth-webview-not-supported/70036/1 "2016-11-13T11:58:12Z")

</div>

Hi,

I was trying to integrate google oauth webview in my app…  
I found that Google does not support login through in app browser anymore…  
My app was completely based on google login…

HELP NEEDED!!

---

<div class="post-metadata">

**Author:** ![fagnerdireito](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/fagnerdireito/32/79831_2.png) [@fagnerdireito](https://forum.ionicframework.com/u/fagnerdireito)\
**Post date:** [November 13, 2016, 12:11pm UTC](https://forum.ionicframework.com/t/ionic-google-oauth-webview-not-supported/70036/2 "2016-11-13T12:11:04Z")

</div>

Google authentication have new version, this is a example:

```
    <html lang="en">
      <head>
        <meta name="google-signin-scope" content="profile email">
        <meta name="google-signin-client_id" content="YOUR_CLIENT_ID.apps.googleusercontent.com">
        <script src="https://apis.google.com/js/platform.js" async defer></script>
      </head>
      <body>
        <div class="g-signin2" data-onsuccess="onSignIn" data-theme="dark"></div>
        <script>
          function onSignIn(googleUser) {
            // Useful data for your client-side scripts:
            var profile = googleUser.getBasicProfile();
            console.log("ID: " + profile.getId()); // Don't send this directly to your server!
            console.log('Full Name: ' + profile.getName());
            console.log('Given Name: ' + profile.getGivenName());
            console.log('Family Name: ' + profile.getFamilyName());
            console.log("Image URL: " + profile.getImageUrl());
            console.log("Email: " + profile.getEmail());

            // The ID token you need to pass to your backend:
            var id_token = googleUser.getAuthResponse().id_token;
            console.log("ID Token: " + id_token);
          };
        </script>
      </body>
    </html>

```

[New version of Google Identity OAuth2](https://developers.google.com/identity/protocols/OAuth2)

---

<div class="post-metadata">

**Author:** ![nikgde](https://avatars.discourse-cdn.com/v4/letter/n/49beb7/32.png) [@nikgde](https://forum.ionicframework.com/u/nikgde)\
**Post date:** [November 13, 2016, 12:29pm UTC](https://forum.ionicframework.com/t/ionic-google-oauth-webview-not-supported/70036/3 "2016-11-13T12:29:11Z")

</div>

Hi,

I am new to ionic, so pardon me if I am asking the wrong question…

When working with ionic the google auth is handled with the help of IN APP BROWSER right?  
I was using in app browser event to fire when I get a successful response token…

My question is can the answer given by you be handled without an in-app browser?
