Kamlesh Katariya
Kamlesh Katariya

Reputation: 53

Alarm with out using UILocalNotification

Is there any way to develop a iphone application without using local notifications. The application should trigger alarm even in Lock state, so that I can make network call on lock state. It may use local notification in background state.

Upvotes: 1

Views: 482

Answers (2)

Kamlesh Katariya
Kamlesh Katariya

Reputation: 53

I have managed to trigger alarm using dispatch_walltime even when the app goes to sleep mode. Previously I was using NSTimer and dispatch_time, which will stop working when the app goes to sleep mode. Grand Central Dispatch (GCD) Reference

Upvotes: 0

rckoenes
rckoenes

Reputation: 69469

No, even if you manage to get you app to run in the background, by miss use of the supported background mades, you can only alert the user with a UILocalNotification.

Upvotes: 1

Related Questions