Hey there,
I’m seeing some difference in behavior in the Notifications.cancelAllScheduledNotificationsAsync()
call between Android and iOS after upgrading to Expo v32.0.0 from v31.
On iOS, the function seems to execute normally. On Android, however, it just hangs and the promise never resolves or rejects. Here’s the code snippet (nothing special going on here):
Notifications.cancelAllScheduledNotificationsAsync()
.then(() => {
console.log('Done clearing local notifications.');
resolve();
})
.catch(err => {
console.log('Unable to clear local notifications.');
reject(err);
})
I stepped through the call using the JS debugger and there’s definitely a difference in execution of the cancelAllScheduledNotificationsAsync
function between Android and iOS.
Is anyone else experiencing this issue after upgrading? Any suggestions on how to resolve?
Thanks!