javascript - Google Provider Login with Firebase and Ionic -


i have been trying create ionic google login popup firebase. however, when user tries press login button, function called producing popup surprisingly blank.

$scope.login = function() {          baseref.authwithoauthpopup("google", function(error, authdata)          {              if (error)             {                 alert('hello');             }              else              {                 $scope.auth = authdata.google;                 $scope.user.set("name", $scope.auth.displayname);                 $scope.user.set("image", $scope.auth.profileimageurl)                 $scope.user.save();             }          });  }; 

all permissions in firebase , google have been set in config file. have idea how can possibly fix issue allow functional popup spawn?

i had quite problem also. appears work ios, no luck android.

by using command 'ionic state save' followed 'ionic state restore' ionic readded android , ios platforms. added cordova-plugin-inappbrowser, cordova-plugin-whitelist (plugins) package.json file.

next, created android build using 'ionic package build android' , send oneplus 2 using testfairy.

finally works, both google , facebook.

in summary once package.json file included relevant plugins, able create apk file worked firebase $authwithoauthpopup.

(with these amendments, ios still seems work fine)


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -