So I have a settings screen that has a switch on it that can toggle if the notification is ON/OFF.
I can access the status of the notification but what I want to do is if I toggle the switch from OFF -> ON
I want it to programmatically turn ON the notification settings by not opening the settings of the phone. Im using expo for this one. Should I use askAsync
?? if I use this, the notification permission will popup I dont want this one to be displayed.
Here is where I can get the status of the NOTIFICATION
const { status, permissions } = await Permissions.getAsync(
Permissions.NOTIFICATIONS
); ```