Getting "Trigger of type: calendar is not supported on Android." When using DailyNotificationTrigger

Please provide the following:

  1. SDK Version: 40
  2. Platforms(Android/iOS/web/all): Android
  3. 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
},
});

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.