Firebase, Ionic Error: disallowed_useragent only in Ionic view


#1

I just deployed an Ionic app in Ionic Pro and am getting the below error. but when I compile and run the app locally it works fine. but this issue is when I tried accessing from Ionic view app after deploying to ionic Pro.

auth.ts

googleSigninwithRedirectv2(): Promise<any> {
    let provider = new firebase.auth.GoogleAuthProvider();
    //provider.addScope('https://www.googleapis.com/auth/contacts.readonly');
    firebase.auth().signInWithRedirect(provider);
    return firebase.auth().getRedirectResult();
  }

Login.ts

 googleLogin():void { 

  this.authProvider.googleSigninwithRedirectv2()
    .then(function (authData) {

      this.navCtrl.setRoot(TabsPage);
    
    }).catch(function (error) {
      console.log(error);
    });
  }

$ ionic -v
3.13.2


#2

What is in the “Request Details”?