Merge branch '728-reminders-appear-only-after-opening-the-app-on-some-phone-models' into 'main'

Fix: Allow push notification in idle state for Android

Closes #728

See merge request bloodyhealth/drip!687
This commit is contained in:
bl00dymarie
2024-10-22 12:06:27 +00:00
+2
View File
@@ -57,6 +57,7 @@ export default function setupNotifications(navigate, setDate) {
vibrate: false, vibrate: false,
repeatType: 'day', repeatType: 'day',
channelId: 'drip-channel-id', channelId: 'drip-channel-id',
allowWhileIdle: true,
}) })
} }
}, false) }, false)
@@ -100,6 +101,7 @@ function setupPeriodReminder() {
date: reminderDate.toDate(), date: reminderDate.toDate(),
vibrate: false, vibrate: false,
channelId: 'drip-channel-id', channelId: 'drip-channel-id',
allowWhileIdle: true,
}) })
} }
} }