2

Does anyone know whats the concept for creating an ios app that fire notification everyday at 5am with different message set for each day. #xcode #swift

Comments
  • 1
    1. Create app that is setup to receive push. Deploy in App Store.
    2. Setup web app/service that is scheduled to run at 5am to deliver notification payload to a list of recipients.
    3. ???
    4. Profit!
  • 0
    @emes001 i mean local notification
  • 0
    @emes001 i mean local notification
  • 1
    Fire local notifications instead. No need of of remote server.
    UILocalNotifications is there for this purpose only
  • 0
    @prkshar how do i? Is the question
  • 0
    http://bfy.tw/67hR

    Let me know if you are having any specific issue
  • 0
    @prkshar man, i searched all over internet and i cant find what i want. I want to fire notification everyday with different message that is set to specific date
    Eg:
    January 1: happy Newyear
    December 25: happy christmas
  • 0
    You will need to add all these dates/items in your app itself, if you want to do it without setting a remote server.

    A quick and dirty way would be to register for all dates for coming one year on app first launch. And in subsequent launches check for registered notification events and keep on adding/removing them as per requirements
  • 0
    @prkshar can u find me a tutorial on that?
  • 0
  • 0
    @prkshar man all tutorial in internet shows how to fire 1 notification and i have done that
  • 2
    Won't putting this code in for loop fire multiple notifications 🤔
  • 1
    @Ashish117 then I think it's a perfect time to write a tutorial to help those that come after you!
  • 0
  • 0
    @prkshar that won't work
  • 1
    @Ashish117 can you explain why it won't work?
    Iterating over your data source and scheduling notification for each event should work
Add Comment