A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
mobile: fix notifications not set
ammarahm-ed23fbf5ae156e
diff --git a/apps/mobile/app/services/notifications.ts b/apps/mobile/app/services/notifications.tsindex fa5a5ed0f..81881d0aa 100644--- a/apps/mobile/app/services/notifications.ts+++ b/apps/mobile/app/services/notifications.ts@@ -128,9 +128,10 @@ async function scheduleNotification(reminder: Reminder, payload?: string) {return;}await clearAllPendingTriggersForId(reminder.id);+if (!triggers) return;for (const trigger of triggers) {- await notifee.createTriggerNotification(+ const notif = await notifee.createTriggerNotification({id: trigger.id,title: title,@@ -162,6 +163,7 @@ async function scheduleNotification(reminder: Reminder, payload?: string) {},trigger);+ console.log(notif);}} catch (e) {console.log(e);@@ -306,8 +308,8 @@ async function checkAndRequestPermissions() {function getTriggers(reminder: Reminder): (Trigger & { id: string })[] | undefined {- const { date, recurringMode, selectedDays, type } = reminder;- switch (type) {+ const { date, recurringMode, selectedDays, mode } = reminder;+ switch (mode) {case "once":return [{@@ -321,7 +323,7 @@ function getTriggers(];case "permanent":return undefined;- case "recurring": {+ case "repeat" : {switch (recurringMode) {case "day":return [