{ "id": "122601", "key": "TIMOB-15785", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "15711", "description": "2013 Sprint 24", "name": "2013 Sprint 24", "archived": true, "released": true, "releaseDate": "2013-11-29" }, { "id": "15712", "description": "2013 Sprint 24 API", "name": "2013 Sprint 24 API", "archived": true, "released": true, "releaseDate": "2013-11-29" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-11-22T00:29:03.000+0000", "created": "2013-11-18T21:20:10.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "callback", "critical", "notifications", "push", "triage" ], "versions": [], "issuelinks": [], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-11-26T23:28:27.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Apps using Ti SDK 3.2.0 master are not receiving the callback event in registerForPushNotifications when the app is open. \r\n\r\nThis means the app cannot present any information from a push notification while the app is open. \r\n\r\nnote: I do NOT use ti.cloud - I have my own APN server which works fine. \r\n\r\nI am not using Alloy. \r\n\r\nNotifications are correctly received when the app is closed/paused. \r\n\r\nShould be easy enough to confirm without a specific test case.\r\n\r\n#urgent\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS: Push Notifications callback not being fired", "creator": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "iOS7 iPhone5 iPad2 iPhone4 Ti SDK (since) 3.2.0.x", "comment": { "comments": [ { "id": "280153", "author": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "body": "Is it possible this is related to the old deprecation warning about accessing the top-level APS key \r\n\r\nFrom TiApp.m \r\n{code}\r\nDebugLog(@\"[WARN] Accessing APS keys from toplevel of notification is deprecated\");\r\n{code}\r\n\r\n", "updateAuthor": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "created": "2013-11-19T12:23:03.000+0000", "updated": "2013-11-19T12:23:03.000+0000" }, { "id": "280209", "author": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "body": "There's definitely something seriously wrong with Push Notifications and Ti SDK 3.2.0.x on iOS.\n\nWhen the app is open, nothing fires at all when receiving a push notification. \n\nOn closing the app, then firing off a push notification from my server, it arrives fine, but if the app is launched from that notification and resumes, there is also no indication of the notification. \n\nSimply logging the success callback event and viewing the xCode console log shows nothing is triggered. (And also show that it does on 3.1.x) \n\n\n\n\n\n\n\n", "updateAuthor": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "created": "2013-11-19T19:30:39.000+0000", "updated": "2013-11-19T19:30:39.000+0000" }, { "id": "280220", "author": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "body": "Another update on this: \r\n\r\nCommenting out the ...\r\n\r\n{code}\r\n#pragma mark Remote Notifications iOS 7 \r\nDelegate callback for Silent Remote Notification.\r\n{code}\r\n\r\n... didReceiveRemoteNotification handler section in TiApp.m stops this issue happening. \r\n\r\nSo, is this broken? Or is there some extra documentation I haven't seen yet most likely regarding iOS7's \"silent remote notifications\".\r\n\r\n\r\nreferences : https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/IPhoneOSClientImp.html\r\nThanks.\r\n", "updateAuthor": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "created": "2013-11-19T20:37:42.000+0000", "updated": "2013-11-19T20:50:33.000+0000" }, { "id": "280620", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hi Kosso,\n\nWe were able to reproduce this error and have escalated the ticket.\nIt is an SDK bug and we are investigating solutions.\nThank you for identifying this issue and for bringing it to our attention!\n\n", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-11-21T22:22:59.000+0000", "updated": "2013-11-21T22:22:59.000+0000" }, { "id": "280645", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master PR: https://github.com/appcelerator/titanium_mobile/pull/5008", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-22T00:04:43.000+0000", "updated": "2013-11-22T00:04:43.000+0000" }, { "id": "280675", "author": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "body": "phew. good work people! :) ", "updateAuthor": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "created": "2013-11-22T00:33:21.000+0000", "updated": "2013-11-22T00:33:21.000+0000" }, { "id": "281554", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Fix verified using iPhone 5 7.0.3. Was able to subscribe to and receive push notifications. Callbacks were fired.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-11-26T23:28:27.000+0000", "updated": "2013-11-26T23:28:27.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }