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

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

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

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

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

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

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.

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

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));
                                      
        });

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

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