I have a mobile app and I have option to log in by google plus I have controller
but when I log in and I choose the account the information is not stored in session.set
I did following this tuturial link I already did step 1 of to configure android it generated a file that I made with keytool
but also I do not know where I put that file anymore when I log in not well information from the account that is doing login
nor does it ask for permissions.
Controller
.controller('LoginGoogle', function($http, $scope, sessionService, $ionicLoading) {
// This method is executed when the user press the "Sign in with Google" button
$scope.googleSignIn = function() {
$ionicLoading.show({
template: 'Aguarde...'
});
window.plugins.googleplus.login(
{},
function (user_data) {
sessionService.set('user_id',user_data.userId);
sessionService.set('nome',user_data.displayName);
sessionService.set('user_foto',user_data.imageUrl);
//sessionService.set('user_slug',userInfo.user_slug);
$ionicLoading.hide();
window.location = "#/app/home"
},
function (msg) {
$ionicLoading.hide();
}
);
};
})
File Generated and Downloaded
google-services.json