Please provide the following:
- SDK Version: 40
- Platforms(Android/iOS/web/all): Android
- Add the appropriate “Tag” based on what Expo library you have a question on.
I am trying to schedule local daily notifications. However, I am getting this error Trigger of type: calendar is not supported on Android.
I looked around and found no solution, a similar issue has been raised in github [Unhandled promise rejection: Error: Failed to schedule the notification. Trigger of type: calendar is not supported on Android.] · Issue #8996 · expo/expo · GitHub
Below is my code:
async schedule() {
const identifier = await Notifications.scheduleNotificationAsync({
content: {
title: 'Hey!',
},
trigger: {
hour: 1,
minute: 10,
repeats: false
},
});