'iOS: How to listen hotspot turn on, turn off notification events

I am working on an application where I need to observe the hotspot events e.g. there must be a callback when the mobile hotspot turn on also when turn off.

I have tried with NWNetworkPathMonitor. but that is not resolving my problem. Please suggest me if there is any framework or third party library for that.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source