Page 1 of 1

We could not find results for AngularJS Ionic APP use "User Login Registration Example, but only Google login fail ? why

Posted: Thu Mar 24, 2016 12:25 pm
by Yang Mega

We could not find results for AngularJS Ionic APP use "User Login Registration Example, but only Google login fail ? why

Posted: Thu Mar 24, 2016 1:58 pm
by Galyna Abramovych

Hello Yang,

Just to make sure I understand, you followed the a rel="nofollow"Login Example/a and get Google login fail?

Could you clarify what you have tried and what exactly does not work?


We could not find results for AngularJS Ionic APP use "User Login Registration Example, but only Google login fail ? why

Posted: Thu Mar 24, 2016 2:05 pm
by Yang Mega

Image Image

Sorry,not put all the screenshots in question.
I follow up all the steps, and I did long time without any problem in jQuery, This is th e first time I try with AngularJS


We could not find results for AngularJS Ionic APP use "User Login Registration Example, but only Google login fail ? why

Posted: Thu Mar 24, 2016 5:11 pm
by Illya Stepanov

Hello Yang,

Thank you for reporting this, just for last clarification you are using an app template "Login Registration Example - Ionic" from visual builder?

First of all, the redirect URI should be specified in the Google developer console the following way:
precode
http://appery.io/app/view/b5033adc-xxxx-xxxx-xxxx-a8e30x78xxfb//code/pre

and in the App your 'loginGoogle' function code should be as follows:
precodeApperyio.User.loginGoogle(Apperyio.Config.get('myDB_settings.googleClientId'), "http://appery.io/app/view/" + Apperyio.Config.get('myDB_settings.appId') + "/").then(function(token){
Apperyio.navigateTo("itemsPage");
},function(error) {
alert("error_" + JSON.stringify(error));
});/code/pre

Also make sure that you using correct "appId" in your Database service settings.