Is there a way to clear Permissions.NOTIFICATIONS state="granted" in order to show popup message again?


#1

Hello, I would like to know if there is a way to show popup message again for Permissions.NOTIFICATIONS if there was selected either preference? This is for iOS. Might be actual for Android as well.

Some example code:

registerForPushNotifications = async () => {
		// Check for existing permissions
		const { status } = await Permissions.getAsync(Permissions.NOTIFICATIONS);
		let finalStatus = status;

		// If no existing permission, ask user for permission
		if (status !== 'granted') {
				const { status } = await Permissions.askAsync(Permissions.NOTIFICATIONS);
				finalStatus = status;
		}

#2

Hi @rukala!

You may want to check out this thread—Asking for permissions again when denied the first time

Citing @aalices:

this is just how iOS deals with permissions. The only way to grant the permission after rejecting it in the first place is going to app settings and toggling the permission manually.


closed #3

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.