Local Notifications for an Event

Hello Everyone,
I’m making my first app for the CWC assignment and it’s an event app. I’d like to use this for my company as well, so I’m trying to set up local notifications. I’ve found a ton of tutorials on interval notifications and calendar notifications, but for the most part they function in the same way where the user is setting up the notifications. I’ll like to have the ability to set up multiple local notifications for my users, so they will receive preset notifications throughout the event.

To date, I’ve put made 3 apps from 7 tutorials and have spent up to 14 hours trying to learn enough to figure it out, but it feels like it’s time to ask for help. :slight_smile: Any support would be greatly appreciated.

You’re looking for push (remote) notifications, not local notifications!

Because if you want to set them for all users, they need to come from a server

APNs, Apple Push Notification

This may be helpful!

I’ve been doing some digging and I think I found what I like but I can’t figure out how to implement it due, because I’m a beginner. Does that look real to you?

You could do it this way, but really only if you know the exact date / time you want these local notifications to be scheduled, for every user that’s downloaded the app

Otherwise you’d have to use push notifications from a server

Cool I’m been having trouble implementing the code. Can you point me in the direction of something that could help with that?

Which do you want to implement for your use case?

Local notifications or push notifications??

Which part of the tutorial you found isn’t working specifically?

1 Like

If all the notification dates are known in advance - use Local Notifications.
This is a simple tutorial that covers it.

If all the notification dates are not known in advance, but will happen live - use Push Notifications sent from a server. If I were you I’d hook this up with Firebase. If you don’t have experience with Cloud Functions and/or APIs, this is about to be a bit of a rabbit hole, but it’s definitely worth learning.

Good luck!

1 Like

I’ll know all the dates and times in advance so I’d like to use the local notifications, but I’ve attempted to put it all in a file and it never builds. I’m assuming it’s considerably easier for someone who has experience. Are there specific classes/lessons here that would help me understand how to do that? Or maybe other tutorials?