{ "id": "171105", "key": "TIMOB-25779", "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": [], "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2018-09-01T12:05:31.000+0000", "created": "2018-02-14T08:20:36.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-09-01T12:05:31.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h6.Reproduce\r\n1. Run the following app on iOS device.\r\nhttps://github.com/sliang0904/SimlpePushCode/blob/master/app.js\r\n2. Click subscribe button to register to channel. And keep the app in foreground.\r\n3. Send push notification from dashboard. But with 'Content-Available' checked. (attached screen shot)\r\n4. Then the app can not get the push notification.\r\n5. But if you put the app in background. Then send same push again. then app can receive the push.", "attachment": [ { "id": "64856", "filename": "Screen Shot 2018-02-14 at 4.18.33 PM.png", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2018-02-14T08:20:20.000+0000", "size": 171936, "mimeType": "image/png" } ], "flagged": false, "summary": "Foreground Push notification cannot get received when there is \"Content-Available\" in payload", "creator": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "subtasks": [], "reporter": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "environment": "SDK 7.0.0 - 7.0.2.GA\r\niOS 11+", "closedSprints": [ { "id": 1070, "state": "closed", "name": "2018 Sprint 18 SDK", "startDate": "2018-08-26T16:14:35.297Z", "endDate": "2018-09-09T16:14:00.000Z", "completeDate": "2018-09-11T20:59:21.495Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "434462", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hey there! Looking in the Apple forums, it seems to be a [known issue|https://forums.developer.apple.com/thread/88239] on iOS 11. Some posts indicate it is fixed in iOS 11.1 and later which would be interesting to confirm. We didn't change anything to silent push-notifications on our side, so the above link provide some guidance. More references:\r\n- https://forums.developer.apple.com/thread/79734\r\n- https://stackoverflow.com/questions/44796613/silent-pushes-not-delivered-to-the-app-on-ios-11\r\n- http://www.openradar.me/34139840", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-02-14T10:37:24.000+0000", "updated": "2018-02-14T10:37:24.000+0000" }, { "id": "434499", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~ewieber] can you try and reproduce?", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-02-14T23:20:32.000+0000", "updated": "2018-02-14T23:20:32.000+0000" }, { "id": "434592", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~amukherjee] [~hknoechel] I am able to reproduce this issue as described. Push notifications are not received if content-available is true and if the app is in the foreground. If the app is in the background or content-available is false, the notification is received normally. As Hans mentioned, it appears to be an Apple bug and I do not see it fixed in 11.2.5 or the latest 11.3 beta", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-02-16T22:35:33.000+0000", "updated": "2018-02-18T09:14:34.000+0000" }, { "id": "434606", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~ewieber] Does this work on iOS < 11, e.g. iOS 10? Also, is there a difference when testing in SDK 6.0.x? We did one change in 6.1.0 that may affect that, although it should not. Finally, I expect that you all have a proper silent push environment set up, e.g. {{UIBackgroundModes}} containing the {{remote-notification}} key as documented [in the docs|http://docs.appcelerator.com/platform/latest/#!/api/Titanium.App.iOS-event-silentpush]:\r\n{code:xml}\r\n \r\n \r\n \r\n UIBackgroundModes\r\n \r\n remote-notification\r\n \r\n \r\n \r\n \r\n \r\n{code}\r\nAnd finally, a [quote from Apple|https://developer.apple.com/library/content/technotes/tn2265/_index.html#//apple_ref/doc/uid/DTS40010376-CH1-TNTAG23]:\r\n{quote}\r\nIf your notification payload contains the content-available key, your app will receive the notification if iOS or OS X determines it is energy-efficient to do so. If the energy or data budget for the device has been exceeded, your app will not receive any more notifications with the content-available key until the budget has been reset. This occurs once a day and cannot be changed by user or developer action. This throttle is disabled if the app is run from Xcode, so be sure to test your app by running it from the device to have the same user experience your customers will have.\r\n{quote}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-02-18T09:15:13.000+0000", "updated": "2018-02-18T10:38:47.000+0000" }, { "id": "434740", "author": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~hknoechel] do we have any update for the customer on this ticket? ", "updateAuthor": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-02-21T23:01:57.000+0000", "updated": "2018-02-21T23:01:57.000+0000" }, { "id": "435040", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~hknoechel], I have silent push properly set up for my project. However, when testing again today I saw the push notification show up twice (once with app in foreground and once with app in background), but then It stopped showing notifications after those 2. I also checked with iOS 10.3.3 and SDK 6.0.0.GA and saw the same behavior. I could see your quote from Apple being a factor here and effecting the results from my testing.\r\nEven so, I am unsure why I was originally able to send the same push notification to the app and it would succeed with the app in the background but not with the app in the foreground.\r\n\r\n[~vvazquezmontero], can you confirm that the customer is using the appropriate tiapp.xml configuration, that Hans mentioned, to be sure we have similar environments?", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-02-28T23:59:54.000+0000", "updated": "2018-03-01T00:01:27.000+0000" } ], "maxResults": 16, "total": 16, "startAt": 0 } } }