getPermissionsAsync on new expo-notifications

Hi guys, im updating to the new expo-notifications and i want to know what “Notifications.IosAuthorizationStatus.PROVISIONAL” means.

import * as Notifications from 'expo-notifications';

export async function allowsNotificationsAsync() {
  const settings = await Notifications.getPermissionsAsync();
  return (
    settings.granted || settings.ios?.status === Notifications.IosAuthorizationStatus.PROVISIONAL
  );
}

i dont see any references in expo-notification package for this PROVISIONAL constant only as typescript enum, is enough to check settings granted only?

Thanks !!!

Hey @outatime,

Going to close this in favor of the the other forum post you opened and will continue discussions there.

Cheers,
Adam

1 Like