Hi everybody,
Login in my app using Ionic Cloud Auth ( $ionicAuth.login) in iOs is not working or just sometimes we can log in after more than a minute! However it works properly in Android.
// Perform the login action when the user submits the login form
$scope.doLogin = function () {
$scope.loadingshow();
$scope.loginResultadoOK = false;
var loginData = {
"theusername": $scope.loginData.theusername,
"thepass": $scope.loginData.thepass,
}
var loginOptions = {'inAppBrowserOptions': {'hidden': true}};
$timeout(function () {
if ($scope.loginResultadoOK != true) {
$scope.loginKO();
}
}, 10000);
$ionicAuth.login('custom', loginData, loginOptions).then($scope.loginOK, $scope.loginKO);
};
I know that this method uses inAppBrowser. I have tried to uninstall the plugin and install it again but still not working. I have made a lot of changes but no way, it remains connecting and I event do not get any error.
The app tries to connect against ionic.io and ionic.io against my server. When Ionic calls my server script, this script sends an email but in this case I’m not getting any email. It seems that something is blocking my calls in my app.
The config.xml includes this:
<access origin="*"/>
<access origin="*" subdomains="true"/>
<allow-navigation href="*://myserver.com*"/>
I will much appreciate any help, I have been trying to fix it for long.
Thanks again.