summaryrefslogtreecommitdiffhomepage
path: root/android/service/src/test/kotlin
AgeCommit message (Collapse)AuthorFilesLines
2025-10-28Rename 'shared' to 'repository'Kalle Lindström1-4/+4
2025-10-28Add option to show relay location in notificationKalle Lindström1-0/+207
This PR adds the following: - An option to show the relay location in the connection notification. - A new submenu under Settings called Notifications. - In the new Notifications screen a toggle to enable/disable showing the location in the notification.
2025-10-23Fix failing test due to time zone changeKalle Lindström1-2/+2
2025-06-19Use AlarmManager for notificationsKalle Lindström1-0/+71
Instead of scheduling system notifications from a flow we now schedule them independently from the app lifecycle via AlarmManager. This is done so that for example an expiry notification that the user dismissed won't get redisplayed if the app process gets killed and then restarted. When the account exiry time is fetched we schedule an alarm that will show a notification 3 days before the account time expires. This alarm then also schedules a new alarm to show the following notification and so on. To make this work this PR also introduces two new broadcast receivers; one on boot received listener and one on time time/timezone changed listener. Beause Android clears alarms when the devices is rebooted/the time is changed we need these listeners to re-trigger the alarm. To enable the broadcast receivers to re-trigger the alarm we also have to persist the expiry time in the DataStore preferences.