Reputation: 118
I am facing problem with API. I have my API, iOs app and foreign API.
iOs makes request on my API, my API makes request to foreign API. But now I have to wait for foreign API to send data to my callback which takes some time, for example 30 sec. How should I keep conenction with iOs app?
I have 3 possible solutions.
Is there any other solution? Or what is the best practice?
Upvotes: 1
Views: 299
Reputation: 2919
Another approach you could try is using APN for notifying the app about new data arrivals.
The iOS client makes a request to your API
Your API makes a request to the ext. API, returns a response to the iOS client
Upvotes: 1