7

Here's the problem, when the app is attached to xcode, didReceiveRemoteNotification:fetchCompletionHandler is called.

But when i detach it, it's not called even when the notification is received.

I attached app again (debug->attach to process) & send the notification, didReceiveRemoteNotification:fetchCompletionHandler called again.

Someone could explain why didReceiveRemoteNotification:fetchCompletionHandler was not called when i detach it from xcode ?

The app was not force closed. I just open it & put it to background.

Tested in iPhone 5 iOS 8.0.2
APNS Sandbox.

Thank you.

Mayur Prajapati
  • 5,454
  • 7
  • 41
  • 70
Rahadian Kumang
  • 591
  • 6
  • 15
  • Remove App, and try again, make sure you are not confusing different signed apps(development,distribution). – David V Feb 10 '15 at 09:48
  • does it matter (removing the app) ? the notification is received, i can tell it by the sound. but the didReceiveRemoteNotification:fetchCompletionHandler is not called. but if i attach it to xcode, and send the notification again, the method was called. – Rahadian Kumang Feb 10 '15 at 09:50
  • Sorry, I understand that you are not getting notification at all. – David V Feb 10 '15 at 09:52
  • If you are getting this situation in bg, have a look on this: http://stackoverflow.com/questions/21776618/didreceiveremotenotification-not-being-called-when-i-tap-on-app-icon-after-recei – David V Feb 10 '15 at 09:53
  • 1
    i think i have different case. i'm refering to didReceiveRemoteNotification:fetchCompletionHandler which is will be called if the the payload have 'content-available':1. the thing is, didReceiveRemoteNotification:fetchCompletionHandler is called as it should be if i ran the app from xcode, but if i run the it not from xcode, the mthod didReceiveRemoteNotification:fetchCompletionHandler is not called even the notification is received. i attach the app to xcode with debug->attach to process, send the notification again and the method didReceiveRemoteNotification:fetchCompletionHandler is called. – Rahadian Kumang Feb 10 '15 at 09:58
  • 2
    Have you found any solutions to this? – rcat24 Mar 11 '15 at 11:04

0 Answers0