Support Topics Documentation Slack YouTube Blog

FLASH (not Flex) iOS not working on device


(Roberto) #1

Ok, I’ve managed to make it work on Flash Pro (not flex) and in desktop it works, but… Once I export to AIR for iOS and install it on a device, on my first function (very simple one):

var query:BackendlessDataQuery = new BackendlessDataQuery();
query.whereClause = "titulo != 'PIM'";
Backendless.Data.of(Noticias).find(query,responder);

I get this error:
ERROR: —[FaultEvent fault=[RPC Fault faultString="" faultCode=“Client.Error.MessageSend” faultDetail=“Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: ‘http://api.backendless.com/v1/binary’”] messageId=“FB7F1D29-5FB6-A5AA-BAB2-2CF29D6CD56F” type=“fault” bubbles=false cancelable=true eventPhase=2]
What am I doing wrong?
Thanks,


(Roberto) #2

OK, Solved. Nothing to do with Backendless :wink:

This was missing on my XML config:

<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key><true/>
</dict>

THANKS!!!