{ "id": "173749", "key": "AC-6286", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2019-09-17T19:09:13.000+0000", "created": "2019-06-11T23:56:10.000+0000", "labels": [ "ios" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-09-17T19:09:14.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Regression since TIMOB-26399 iOS: Several issues with push-notifications since 7.3.x Fix\r\n\r\n- silent notifications fire on the dedicated silent event AND the normal (pre-existing)\r\nSeems to have regressed in 8_0_1_GA\r\n\r\nOn iOS: we’re seeing the callback for `registerForPushNotifications` being called twice when the push notification has content-available set to 1. \r\n\r\nIf we also register an event listener for `silentpush` this fires as well. \r\n\r\nThe result is when in the foreground we end up getting three different events to process the same notification. When the app is backgrounded we get 1 event on silentpush and one on the `registerForPushNotifications` callback.\r\n\r\nI have tested the same code on 7.5.2 and the behaviour is correct (1 event) with this SDK.", "attachment": [], "flagged": false, "summary": "Silent push-notification regression", "creator": { "name": "nickkemp", "key": "nickkemp", "displayName": "Nick Kemp", "active": true, "timeZone": "Pacific/Auckland" }, "subtasks": [], "reporter": { "name": "nickkemp", "key": "nickkemp", "displayName": "Nick Kemp", "active": true, "timeZone": "Pacific/Auckland" }, "environment": null, "comment": { "comments": [ { "id": "449075", "author": { "name": "nickkemp", "key": "nickkemp", "displayName": "Nick Kemp", "active": true, "timeZone": "Pacific/Auckland" }, "body": "Am I right in assuming that it's probably because we are using the callback property of registerForPushNotifications and so effectively \"double registering\" for events. I see in Han's example repo this is no longer used. If this is the case, the docs need an update to reflect the events have been split out!", "updateAuthor": { "name": "nickkemp", "key": "nickkemp", "displayName": "Nick Kemp", "active": true, "timeZone": "Pacific/Auckland" }, "created": "2019-06-13T21:10:56.000+0000", "updated": "2019-06-13T21:10:56.000+0000" }, { "id": "449317", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~nickkemp] Would it be possible to get a simple test case which reproduces the issue? Thanks. ", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-06-25T09:09:16.000+0000", "updated": "2019-06-25T09:09:16.000+0000" }, { "id": "450607", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~nickkemp], Can you please followup in here? Please provide a simple test case which reproduces the issue. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2019-08-20T14:22:35.000+0000", "updated": "2019-08-20T14:22:35.000+0000" }, { "id": "451030", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~nickkemp], Can you please follow up in here? We haven't received the sample code yet. Can you please get on it and share with us so we can verify and take necessary steps farther? Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2019-09-02T17:02:25.000+0000", "updated": "2019-09-02T17:02:25.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }