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 ULocationNotification set for 6 hours in advance. Use the userInfo dictionary to mark the notification (ex: @ {@ "valid": @NO} ).

Check for your 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.

If there is a valid notification, show it.

Original idea:

  1. Post notification for a non-valid status set for 6 hours later.
  2. Receive notifications, check if it is valid.
  3. If not valid, valid and repost in the valid status immediately.
  4. If it is valid, show the information as usual.
  5. All notifications that do not pass certification.

Comments

Popular posts from this blog

jasper reports - How to center align barcode using jasperreports and barcode4j -

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -