[Technical Questions] Run background notifications #129
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @elsa-bismuth! It looks like the current implementation works directly with BGAppRefreshTaskRequest and the "manual" local notification system. Instead, it will be much easier to use the SpeziScheduler module. This will allow you to easily define recurring Tasks and provide code blocks that check if the Task has been completed. Please look through the documentation provided at the link, which has coding examples and thorough explanations of the different components of the library. In particular, you might find SchedulerNotifications to be particularly helpful. Finally, for an example, see the Spezi Template Application, which includes a fully implemented local notification system (see Scheduler). Please feel free to come to office hours with specific questions regarding how to use SpeziScheduler! |
Beta Was this translation helpful? Give feedback.
Hi @elsa-bismuth!
It looks like the current implementation works directly with BGAppRefreshTaskRequest and the "manual" local notification system. Instead, it will be much easier to use the SpeziScheduler module. This will allow you to easily define recurring Tasks and provide code blocks that check if the Task has been completed. Please look through the documentation provided at the link, which has coding examples and thorough explanations of the different components of the library. In particular, you might find SchedulerNotifications to be particularly helpful.
Finally, for an example, see the Spezi Template Application, which includes a fully implemented local notification system (see S…