Hi,
This is something related with:
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 consta…
The symbol IosAuthorizationStatus is not exported in expo-notifications (v0.3) but is available on (v0.4) any way to get this update on SDK38?
@notbrent any advice with that? Or in the meantime i need to hardcode the value?
Thanks !!!
Hey @outatime , you can install 0.4
via yarn add expo-notifications@0.4.0
in your project.
Cheers,
Adam
thanks @adamjnav , even though the expo upgrade
does not update the dependency? It is not entirely clear to me when I can force an update of a unimodule regardless of the version that “knows” the expo upgrade
command. (im on managed workflow)
I update manually using yarn add expo-notifications@0.4.0
instead of expo install
and im get the following warning:
system
Closed
July 29, 2020, 8:03pm
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.