I am brand new to iOS development and finding it quite difficult to accomplish what I would think to be a fairly simple task.
I have an app that uses Parse push notifications and I would like to subscribe/unsubscribe from channels when the user makes a change to the app's preferences in the Settings application. All of the information that I have found shows how to synchronize settings once the app has been opened again but what I am hoping to accomplish is as follows:
- User changes a toggle button for a particular channel in the Settings application - when they toggle it On, I want to subscribe. Off, unsubscribe
- When the preference changes, I want to be able to call code in my app to take care of making the change on Parse BEFORE the user opens the app again
The short question - Is there any way to register a callback in the application when a preference is changed in Settings?
Thanks!