How to set calendar notification with sound?
CalendarTriggerInput - doesn’t have property sound.
const notification = async () => {
const content = {
title: 'Title',
body: 'Text',
sound: 'default'
};
const trigger = {
hour: 10, // your time in hour
minute: 0, // your time in minute
sound: 'default'
};
await Notifications.scheduleNotificationAsync({
content,
trigger, // notification should play at 10:00
});
}