Galyna Abramovych
Site Admin
Posts: 84
Joined: Tue Mar 22, 2016 6:03 pm

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

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?

Yang Mega
Posts: 0
Joined: Sun Aug 31, 2014 6:08 am

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

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

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

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.

Return to “Issues”