I have implemented background fetch in my app. and everything works very good when I use following option from xCode menu
Debug -> Simulate Background Fetch
When I do this, the webservice gets run and all data is back up on the server as expected.
but when I use device normally it never gets updated on server. Its like background fetch is never being called.
I am using following as said in Docs
UIApplication.shared.setMinimumBackgroundFetchInterval(UIApplication.backgroundFetchIntervalMinimum)
and all other stuff is simple code that is updating server with very short amount of data.
PROBELM AND WHAT I WANT: I do not know why the background fetch is not called even I have opened app many times and closed it many times to get the background fetch. for check I have ran query on server side but data is not updated by app. Where as when I ran the app with Xcode --> Debug --> Simulate Background Fetch my server gets updated with latest data.And every thing work as expected
Please let me know what could be possible reason of this behavior? am I missing something?