$cordovaGooglePlus.login works but after that If I call any other ajax call to my server it fails


#1

$cordovaGooglePlus.login works but after that If I call any other ajax call to my server it fails.


#2

Where is this from? Please provide a link to the library or plugin you are using.


#3

This is from ionic.native , using for ionic 1 version app app.

I followed the below document and also tried with $ionicGoogleAuth.login() instead of $cordovaGooglePlus


#4

Ok, this is not Ionic Native but the Ionic Service “Auth”, and you’re using the Ionic v1 version @ionic/cloud as a library.


#5

Thanks for your suggestion I will try this approach and update you


#6

That was not a suggestion, just an assessment of what you use.
Now someone else that knows more about these may be able to help.


#7

My app is in Ionic version 1

For using the services of $ionicGoogleAuth,$ionicCloudProvider I followed the below url

for installing ionic.cloud followed the below link
https://docs.ionic.io/setup.html

then I included lib as mentioned in the instructions then I get the below error If I include $ionicGoogleAuth,$ionicCloudProvider as dependencies to my GatepassCtrl

Error: [$injector:unpr] Unknown provider: $ionicCloudProviderProvider <- $ionicCloudProvider <- GatepassCtrl


#8

The above issue resolved and no errors.
But able to reach to the below code and nothing happens with the below code.

$ionicGoogleAuth.login().then(function(res){

            alert(JSON.stringify(res));
                                      
                                      
        },function(error){
            alert(JSON.stringify(error));
                                      
        });

#9

I used the following link to setup in my ionic ver 1 app

http://blog.ionic.io/google-oauth-changes/