ios - Posting Uilocalnotification dynamically after some validation of code before triggerring the notification -
I want to set up a UILocal notification in my app, I will set the fired in notification for 6 hours. Application, But before the notification starts, I have to validate my position, if this condition meets, then I should not post the information, otherwise I will have to post the information. How can I handle this situation?
Post Check for your If there is a valid notification, show it. Original idea: ULocationNotification set for 6 hours in advance. Use the
userInfo dictionary to mark the notification (ex:
@ {@ "valid": @NO} ).
application: didReiveiveLocalNotification: handler,
valid flag. If this is not valid, do so. If this verification passes, then post the notification again in a future millisecond.
Comments
Post a Comment