mrd
mrd

Reputation: 4699

UILocalNotification with fireDate in the past, but with repeatInterval

If I create a UILocalNotification & set its fireDate in the past & with a repeatInterval, will it fire once repeatInterval is due next time in future? Or will an UILocalNotification only fire with a future fireDate ?

Upvotes: 0

Views: 267

Answers (1)

Andrea
Andrea

Reputation: 26385

It will.
If you set in the application a -fireDate in the past, it will be fired immediately and should be handled inside the UIApplicationDelegate application:didReceiveLocalNotification: method.
If you set also a repeat interval your notification will continue to be fired at the exact time multiplied per the -repeatInterval

Upvotes: 1

Related Questions