[Office Hours] Question about apple alert notification #123
-
Related DiscussionHi! I hope to set up an alert notification when a user hasn't input data for a week. I’ve reviewed the Apple tutorial. I believe that Spezi already registers for APNs and stores the device token. However, I’m unsure how to automatically trigger the notification and how to properly test it. Would it be possible for me to schedule an office hour on Monday? The nearest available office hour is on Wednesday, but I’d like to clarify this earlier so I can submit my second pull request on time. Thanks! ReproductionNone Additional contextNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I also need help with this. I looked into the SpeziNotifications module but I'm having a hard time understanding how to actually use it. |
Beta Was this translation helpful? Give feedback.
-
@dusixian @kkellybonilla Good question; there are two options here. I would point you to the second one but want to highlight them here. Push NotificationsUse APNS push notifications from a server. It requires you to
You can learn more about this, e.g., in this video: https://developer.apple.com/videos/play/wwdc2023/10025. I think this is a good idea for a larger system. I would suggest going a simpler route if your main task is to just send a simple reminder notification after two weeks for the scope of the class and a first prototype. Local NotificationsTrigger the notification as a local notification that can be cancelled if a user has successfully entered something in the app might be way easier and can be done completely locally. You have two larger options. Spezi SchedulerYou can rely on the already integrated Spezi Scheduler module. Manually Trigger the Notification & Keep Track of itYou can follow articles such as Scheduling a notification locally from your app to schedule and keep track of your notifications right in your app. |
Beta Was this translation helpful? Give feedback.
@dusixian @kkellybonilla Good question; there are two options here. I would point you to the second one but want to highlight them here.
Push Notifications
Use APNS push notifications from a server. It requires you to
You can learn more about this, e.g., in this video: https://developer.apple.com/videos/play/wwdc2023/10025. I think this is a good idea for a larger system. I would suggest going a simpler route if your main task is to just send a simple reminder…