You can keep a flag in user-defaults when application terminates and call the API in didBecomeActive when user comes back by checking the flag .
You can keep a flag in user-defaults when application terminates and call the API in didBecomeActive when user comes back by checking the flag .