I need to schedule a UILocalNotification
when battery is n percent. UILocalNotification
has fireDate
property only and UIApplication
class has below methods for presenting local notifications.
- (void)presentLocalNotificationNow:(UILocalNotification *)notification;
- (void)scheduleLocalNotification:(UILocalNotification *)notification;
Is they are anything else that would help me post local notifications based on events and not time. I can do it when the app is in active or background state. But I want to schedule it, so even if app is terminated, it can post the notification.