I am using v3 of Backendless on iOS. On the simulator everything is OK, but on the device even a simple data retrieval comes back with an error.
I’ve added the following to my Info.plist file:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
I have the following code in my .m file:
QueryOptions *queryOptions = [QueryOptions query];
queryOptions.relationsDepth = @1;
BackendlessDataQuery *dataQuery = [BackendlessDataQuery query];
dataQuery.queryOptions = queryOptions;
[backendless.persistenceService find:[Variables class] dataQuery:[BackendlessDataQuery query] response:^(BackendlessCollection *collection){
NSArray *currentPage =[collection getCurrentPage];
NSMutableDictionary *ret = [[NSMutableDictionary alloc] initWithCapacity:[currentPage count]];
for (Variables *variable in currentPage)
{
ret[variable.key] = variable.value;
}
NSLog(@"%@", ret);
}
error:^(Fault *fault) {
NSLog(@“Backendless error: %@”, fault.description);
completion(nil);
}
];
and it comes back on the device with the following error:
CFNetwork SSLHandshake failed (-9806)