Triggering a local notification based on connectivity while the app is not active

I'm working on an business tool app that supports offline work in areas without network access. while the offline activity is logged and saved locally, I need users to log in online in order for the app to report the offline activity audit back to the backend as soon as possible (once the phone has network access again) so the data is available to their managers.

I am trying to find a way to trigger a local notification to remind the user of this required action once the phone regains connectivity, even if the app is in the background or not in memory at all.

looking at the 4 available types of UNNotificationTrigger - the recommended way to trigger pending local notification, none of them supports the required functionality. using background capabilities also doesn't seem to be the correct way to approach this. In looking for similar questions online, couldn't find one addressing a similar scenario.

Any ideas on how this can be achieved?

It can't be achieved. You can't make notification trigger based on arbitrary events, nor can you make your app launch in order to post the notification.

Triggering a local notification based on connectivity while the app is not active
 
 
Q