I want to implement local notification in my clock app.Basically i want that a music file should be played after every half an hour like in ship’s clock in which chimes are played after every 30 minutes.
Can anyone give rough idea as how i can implement this functionality even when the app enters in background?
I recently used the Local notification stuff and used the following functions
//Setting up the Local Notifications
Where scheduleNotificationWithItem is defined as
Finally you can handle these notifications as
You can handle these notifications as follows
reading the developer documentation will help you more to understand the stuff.Hope it helps