Can I have an application automatically open at a certain time?

Discussion in 'iOS Programming' started by aaortega, Dec 14, 2009.

  1. macrumors newbie

    Joined:
    Dec 14, 2009
    #1
    Can you have an application launch itself and then close like 5 seconds later? There are apps that send you reminders at a certain time, why would I not be able to do that?
     
  2. macrumors member

    chbeer

    Joined:
    Sep 22, 2008
    Location:
    Berlin
    #2
    I think you can. But I also think it's not a good idea because the user would wonder what happened and delete it right away. You should tell the user that your app is about to close...

    You are able to do that just as any iPhone developer. It's done with a server sending notifications to Apple that sends those notifications to given devices. Your app needs to register at your server and you can then send those notifications.
     
  3. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #3
    Contrary to what is written above there is no way to schedule your app to startup at a certain time on a non-jailbroken phone.
     
  4. thread starter macrumors newbie

    Joined:
    Dec 14, 2009
    #4
    Isn't an alarm on the phone essentially the same thing? Are you not telling the phone to perform an action at a certain time? Or when you have your phone pop-up a reminder, it is all done remotely? Or can you at least tell your phone to send a message at a certain time?
     
  5. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #5
    The built-in alarm app is Apple provided so does not operate under the same restrictions. You cannot look at it and say "if it can, I can". For example the iPod app can run in the background and you can't.
     
  6. thread starter macrumors newbie

    Joined:
    Dec 14, 2009
    #6
    So every time you have an app give you a reminder it is all done remotely?
     
  7. macrumors 6502

    Joined:
    Jun 17, 2007
    #7
    Yes. That's the only way.
     
  8. thread starter macrumors newbie

    Joined:
    Dec 14, 2009
    #8
    Wow, that sucks A**! Thanks everyone for all your knowledge and help!
     

Share This Page