1

I just saw a functionality used by Inbox by Gmail app.Scenario is like this:- When any mail arrives,the application get Push Notification for the mails..Now don't open the app in iphone,Open Inbox website and login over the website with the same account,Now read those mails for which the notifications arrived in iphone.

As soon as you read the mails over the website,the notifications would got disappear from the phone.I am just curious to know aboust how's it possible even the app isn't in Background state.

I know you guys may vote down for this question but think about it before going to vote.

Mohd Prophet
  • 1,511
  • 10
  • 17
  • Not sure if it helps or not : http://stackoverflow.com/questions/28551108/dismissing-ios-push-notifications-remotely?rq=1 – GoodSp33d Feb 18 '15 at 11:58

1 Answers1

0

Can be with silent push notification, in the application:didReceiveRemoteNotification:fetchCompletionHandler: you can remote your notification with the [application setApplicationIconBadgeNumber:badgeNumber - 1];

las
  • 288
  • 2
  • 8
  • application:didReceiveRemoteNotification:fetchCompletionHandler also needs the launch of app first,they are doing this even without launching the app. – Mohd Prophet Feb 18 '15 at 11:55
  • 1
    No, application:didReceiveRemoteNotification:fetchCompletionHandler: is called regardless of app state.If app is suspended or not running, then the system wakes up or launches your app and puts it into the background running state before calling the method. – las Feb 18 '15 at 11:57