Permissions askAsync and getAsync returns undefined after permission was granted

askPermissionNotification = async () => {
let { status } = await Permissions.askAsync(Permissions.NOTIFICATIONS);
if (status === 'granted') {
this.setState({ notificationAllowed: true })
}
let { notificationStatus } = await Permissions.getAsync(Permissions.NOTIFICATIONS);
if (notificationStatus === 'granted') {
this.setState({ notificationAllowed: true })
}
}

Permission status is always undefined after user granted permission! This is latest ExpoKit version.

Hey @luckygirlllll,

What platform is this occurring on? Also, are you testing on a physical device?

Cheers,
Adam

That’s a bug in expo Permissions askAsync and getAsync returns undefined after permission was granted · Issue #5853 · expo/expo · GitHub