Today, CBPeripheralManager manager is being initialized inside the init method.
That causes the app to show the OS permission popup immediately when you run the app.
In many cases you want to show your own explanation message before you request permission. You might want to do it later on your app flow.
if you place it in the getState method, it will only request permission once you subscribe to the onStateChanged event.
Alternatively, a new bleInit method can be added that initializes the manager.
Today, CBPeripheralManager manager is being initialized inside the init method.
That causes the app to show the OS permission popup immediately when you run the app.
In many cases you want to show your own explanation message before you request permission. You might want to do it later on your app flow.
if you place it in the getState method, it will only request permission once you subscribe to the onStateChanged event.
Alternatively, a new bleInit method can be added that initializes the manager.