Subscribe on WiFi connection event (even for not running app)

Is there is a way how app can be subscribed to WiFi connection events, even if app is not running (suspended or terminated)?

I know that in foreground NWPathMonitor can be used. I found this thread [https://developer.apple.com/forums/thread/685255], but subscribing for update location for wake up the app is not the case for me.

I'm also aware of silent push notification to wake the app, but still this is not related to network status change... Is there is any other, more proper, way to handle that?

Is there is a way how app can be subscribed to Wi-Fi connection events, even if app is not running (suspended or terminated)?

No. There is no background capability that will resume (or relaunch) your app in the background in response to Wi-Fi status changes.

What’s your goal here? What problem are you trying to solve such that this would be useful to you?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

My task is to show user a local notification when he is connected to new WiFi network, and suggest to connect VPN to be more secured. And yes, our app is using VPN On Demand rules, but not all clients wanted to use this option by the default. And in order to provide better UX we need to show this sort of local notification reminder when WiFi connection established

So you’re building a VPN product? Is this using one of Apple’s built-in VPN transports? Or a NE provider of some sort?

And is this for a managed environment? Or something you deploy to normal users via the App Store?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Yes, VPN product for App Store users. We are using Apple’s built-in VPN API (IKEv2 protocol)

Given those constraints, I don’t see any better solution than VPN On Demand rules.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Thank you for your replies.

Subscribe on WiFi connection event (even for not running app)
 
 
Q