Can you be notified BEFORE airplane mode?

Is it possible to get a notification in iOS before the user puts their device into airplane mode?


A client I am working for has a need for an app that stays in touch with a remote server while it's running. We need to be able to notify the server if the user has asked to turn off networking.


Thus we need a notification BEFORE the network connection is actually shut down so we can send a notice to the server "going 'radio silent`!"


The only API I'm aware of is reachability, which you have to poll, and would let us figure out that the user has put their device into airplane mode after it is too late to send a message out.

Ask the user...

Is it possible to get a notification in iOS before the user puts their device into airplane mode?

No.

A client I am working for has a need for an app that stays in touch with a remote server while it's running. We need to be able to notify the server if the user has asked to turn off networking.

From the server’s perspective, how is this different from the user walking down to their basement where there’s no network coverage? Whatever you do to handle that, you should do the same thing to handle this.

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
Can you be notified BEFORE airplane mode?
 
 
Q