Support Topics Documentation Slack YouTube Blog

iOS aSync loadRelations function does not go in response callback


(Gabriel) #1

When calling the aSync version of the loadRelations function, it does not go in the response callback.
Using the Sync version of the function works.
Am I doing something wrong? In the example below, the response is never called.

let query = LoadRelationsQueryBuilder()
query.setRelationName("subscriptions")



ClientManager.backendless.data.of(BackendlessUser.ofClass()).loadRelations("FF92D849-4324-8601-FFAA-3B2A9ADC8E00", queryBuilder: query, response: {(items: [Any]?) -> Void in
 
 print(items!)
 }) { (fault) in
 print(fault!)
 }



(Mark Piller) #2

Is the fault callback invoked? Any errors or warnings when the code makes the call?


(Gabriel) #3

Nothing. it just steps over it.


(Mark Piller) #4

Have you tried setting breakpoints in the response/error blocks?


(Gabriel) #5

Yes. It does not break


(Mark Piller) #6

What is your app id?