I am currently working on a game that requires push notifications. I have decided to use LeanPlum services for sending the notifications but I am having trouble finding a way to disable push notifications while inside the app. I know that within the settings of the phone (whether iOS or Android) a user can go in and disable/enable the push notifications, but I want a way to code it within my game. From what I have gathered during research Android automatically enables push notifications and LeanPlum has a RegisterForIOSRemoteNotifications function, but I can't find any sort of DisableRemoteNotifications function.
How can I manually set up a way to turn on and off push notifications while in my game using C#? (ps I am very new when it comes to push notifications coding)