Expo multiple local notifications fire at same time

#1

Multiple local notifications trigger at the same time. Solutions?
scheduleLocalNotification = async (dateTime) => {
const localNotification = {
title: ‘Reminder!’,
body: Reservation time is ${dateTime} in one hour,
ios: {
sound: true,
},
android: {
sound: true,
vibration: true,
color: ‘#0c4781’,
},
};
const schedulingOptions = {
time: (new Date()).getTime() + 60000,
};
Notifications
.scheduleLocalNotificationAsync(localNotification, schedulingOptions);
}

0 Likes

closed #2

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

0 Likes