Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Custom Intervals On Local Notifications

Discussion in 'iOS and tvOS' started by FreedomFalsified, Nov 29, 2014.

  1. FreedomFalsified

    FreedomFalsified

    Joined:
    Oct 18, 2014
    Posts:
    3
    I have searched long and hard for this, and cannot find anything on it. I need to ideally be able to have the user set specific times they want to be notified, like alarms. But I see that for repeating these notifications the only options are calendar units (every second, every minute, every hour, every day, etc...). I have been unable to find anyway to set custom times or intervals for activation. Is it even possible to do this? Or is there a way to do it using something other then LocalNotifications? Something like how you can set alarms using the built in feature on iOS, like to repeat at specific times like every tuesday and friday at 12. Or repeat every 30 min.

    Thank you for your time,
    -Freedom Falsified Gaming
     
    Last edited: Nov 29, 2014
  2. andymads

    andymads

    Joined:
    Jun 16, 2011
    Posts:
    1,614
    Could you create multiple non-repeating notifications with the exact fire date you want?
     
  3. FreedomFalsified

    FreedomFalsified

    Joined:
    Oct 18, 2014
    Posts:
    3
    Wow didn't expect anyone to actually comment on this. But yea what I ended up doing is taking the amount of time I wanted it to repeat in intervals, like every 5 minutes, divided the next calendar unit up from it (an hour in this case) by 5, then set up those 12 alarms to all be the "same" (same text and everything so as to appear as the same notification clearly) and had them set to repeat each hour, so a notification will fire every 5 minutes and just keep repeating one after the other.
     
  4. zhangleipku

    zhangleipku

    Joined:
    Mar 13, 2016
    Posts:
    2
    Of course, you can.

    However, there is a limitation that you can set 64 notification at most on iOS.