static scheduleReminderNotifications(isoTime: string) { // First, clear existing notifications--can only have one reminder // scheduled. this.clearReminderNotifications(); // Schedule the notification. PushNotification.localNotificationSchedule({ message: Localized('Notifications.message'), date: parseISODateString(isoTime), repeatType: Platform.OS === 'ios' ? 'day' : 'daily', }); }
schedule(opts) { PushNotification.localNotificationSchedule(opts); }
/** * Add local notifications by the time for IOS and Android. Work when app in background. */ export function addReminder({ date, title = APP_NAME, text = '' }: Args ) { return PushNotification.localNotificationSchedule({ title: title, message: text, bigText: text, // for android date: date, smallIcon: "ic_launcher", }); }