title: FIrebase Google auth operation not supported in this environment
body: <p>I am working on ionic and firebase project, made a login page to sign in with google. I am using this Below.</p>
  
  <pre><code>        var provider = new firebase.auth.GoogleAuthProvider();
          firebase.auth().signInWithRedirect(provider).then(function (result) {
              var token = result.credential.accessToken;
              // The signed-in user info.
              var user = result.user;
              $state.go('app.homepage');
          }).catch(function (error) {
          });
  
          firebase.auth().getRedirectResult().then(function (result) {
              if (result.credential) {
                  var token = result.credential.accessToken;
              }
              // The signed-in user info.
              var user = result.user;
          }).catch(function (error) {
          });
  </code></pre>
  
  <p>When I run it in the browser it is working fine, but when I run it in android device I am getting auth/operation-not-supported-in-this environment.
  The application is running on "location.protocol".
  I researched a bit but could not find an exact answer. What could be wrong ?</p>