Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16178] iOS: Push notification callback not fired if app is in background and resumed without clicking the notification

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2017-03-29T16:01:14.000+0000
Affected Version/sn/a
Fix Version/s2014 Sprint 03, 2014 Sprint 03 API, Release 3.3.0
ComponentsiOS
Labelsn/a
ReporterDavide Cassenti
AssigneeSabil Rahim
Created2014-01-13T15:55:49.000+0000
Updated2017-03-29T16:01:18.000+0000

Description

Problem description

When receiving a push notification, if the app is in background and it is resumed without clicking the notification in the bar, the callback is not fired.

Code

Tested with this sample code: https://gist.github.com/davidecassenti/3ca943961098c0534e97

Steps

1. Run the app 2. Click subscribe 3. Put the app in background 4. Send a notification 5. Open the app using the icon, not the notification

Comments

  1. Sabil Rahim 2014-02-04

    Looks like this is the native behavior. if your app is in the background and notification comes,if the user chooses to ignore it, we don't get a callback for it. There is a [thread in StackOverflow](http://stackoverflow.com/questions/11088284/get-push-notification-resuming-app-from-background) which describes the same problem. Marking it as invalid.
  2. Lee Morris 2017-03-29

    Closing ticket as invalid, with reference to the above comments.

JSON Source