Objective C: Is it possible not to show iOS Push Notifications in specific conditions

| | August 5, 2015

Is it possible in iOS 7/8 not to show push notifications? In push userInfo I receive some data. Is it possible to check this data and show/not show this push notification? I need this when user have to logout from my application.

2 Responses to “Objective C: Is it possible not to show iOS Push Notifications in specific conditions”

  1. Yes,it is possible in server side.when you get notification at the same time ask server side to send save that in one web service from that you have to get and show the details to user.
    In app is open that time you able get notification data in didReceiveRemoteNotification.

  2. Sorry, You can not stop notification from being shown in notification panel. When your app is in background/terminate state. First Notification is shown in notification panel.
    You can control show/hide notification in your application. When your app method didReceiveRemoteNotification is called.
    You can ask your back-end developer to send some flag whether this notification should be displayed or not.

Leave a Reply