Setting random local notifications on iphone

I am trying to find a way to schedule random local notifications on iphone. I would like to be able to send a random message to the user (selected from a list of messages) at a random time during the day, every day.

I can probably count a bunch of random times and messages and just schedule it for the next, say 30 days or more, but that seems like a mess and doesn't provide a good way for the user to cancel the warnings.

My research shows that cron jobs are not supported on the iphone, so it seems like I can't just schedule a background process to randomize notifications, right?
I also saw push notifications as another possibility.

However, I wanted to ask my own question to see if you have any experts any other ideas.

thank!

+3
ios objective-c iphone notifications uilocalnotification


source to share


No one has answered this question yet

Check out similar questions:

1141
How can I develop for iPhone using Windows development machine?
724
Generating random numbers in Objective-C
181
How to get background location update every n minutes in iOS app?
170
Creating a notification system
21
How do I assign a local notification for the following scenario?
18
Enable / Disable Apple Push Notification from iPhone App?
3
Is there an equivalent solution like iOS localNotification on Android platform?
1
Local notice repeats every weekend
0
Pick a random text and set it in alert for local notification?
0
Can Firebase User User Server Grouping by User Configuration?



All Articles
Loading...
X
Show
Funny
Dev
Pics