-4

I have seen some iphone apps that only play a sound in background without showing any Notification message or body in iOS. How do they that? I've tried searching for Sound notification only but no luck. Is there a name for that and I happen to search for the wrong function? What is it called and what's the code for such a thing?

I'm trying to play a multiple custom sound notifications that occur every 15 mins and/or at the head of every hour. I would highly appreciate your help displaying the code to for me so I can copy it to Xcode. Thank you very much.

iDev
  • 23,310
  • 7
  • 60
  • 85
user1949873
  • 460
  • 7
  • 17
  • 3
    This isn't the place to come if you want other people to do your work for you – Daniel Jan 04 '13 at 22:26
  • @Daniel I don't understand! I'll do the work. Just give me the keys. Is there a name for such a thing? Is it still Local Notification with some edit on it? Thanks for the help. – user1949873 Jan 04 '13 at 22:35

1 Answers1

1

I think you're looking for UILocalNotification. Don't set the alertBody property and it won't show an alert, use the soundName property to specify a sound instead. It seems like you want periodical notifications, so have a look at the repeatInterval and repeatCalendar properties as well.

IngmarStein
  • 650
  • 6
  • 12