ngCordovaOauth ios not working


#1

When im running emulator, my auth is working fine, but when i upload my app to ionic view and test it there, it isn’t working. No redirect to /app/wall. Below is the function which calls when i press the button “Log in”. with -l -s -c flags it returns me my res.

$scope.loggin = function(){
     $cordovaOauth.vkontakte('4946013', ['offline', 'wall', 'friends', 'status', 'messages']).then(function(res){
      $localStorage.token = res.access_token;
      console.log(JSON.stringify(res));
      $location.path('/app/wall');
    }, function(error){
      console.log("Error > " + error);
      $location.path('/app/favs');
    });
  };

#2

Hey @genuris,

I also responded to you on StackOverflow:

http://stackoverflow.com/q/30988601/498479

Due to incompatibilities between the InAppBrowser and Ionic View, ngCordovaOauth will not work.

To use this library you need to build and install directly to a device or simulator.

Regards,