Hello everybody,
I try to authentificate with a third party service with the standard $http
service but it does not work on IOS. (The authentification works on Android devices and browsers so far).
What I tried so far:
The first problem i ran into was the that the third party service uses a self signed certificat so I added this code to AppDelegate.m
@implementation NSURLRequest(DataController) + (BOOL)allowsAnyHTTPSCertificateForHost:(NSString *)host { return YES; } @end
But now every time I try to authenticate with the server I get a 0 Error (response) either with the message failed to load resource: The network connection was lost… or just failed to load resources
So the I tried to add several different things like:
->Editing config.xml
> <access origin="*" subdomains="true" />
> <allow-navigation href="*" />
> <allow-intent href="*" />
->Add meta tags to index.html
as described here GitHub - apache/cordova-plugin-whitelist: [DEPRECATED] Apache Cordova - Whitelist Plugin
but I still have the same error… has anyone an idea?
looking forward to hearing from you.
Many thanks,
Jacob