I have a communication based app which is approved by Apple as of now. But I have an issue that I am trying to solve.
I have implemented push notifications correctly and I do not have any background mode enabled as of now.
How can I solve following issue:
- User has no network connection as of now.
- User opens the app.
- User writes few messages to be sent when network is back up.
- User closes the app expecting the app to send messages when network is up.
- User did not open the app again.
- Network came back up after 10 hours
- Messages were not delivered.
I am sure this problem has been solved before.
My understanding is app does not have network access if its in background unless I make it a Voice over IP app. But my app is not VoIP.
So how can I detect network availability when in background and open the stream to send pending messages??
Best Regards,