{ "id": "174254", "key": "AC-6406", "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": null, "resolutiondate": null, "created": "2019-10-14T16:56:31.000+0000", "labels": [ "ios-12", "ios-13", "notifications", "push", "sdk-8" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-11-13T10:47:59.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "The _Ti.Network.registerForPushNotifications_ _success_, _error_ and _callback_ are not fired at all on iOS 13. The same code works well on iOS 12.4.3.\r\n\r\nHere is the snippet:\r\n{code}\r\n if (OS_IOS) {\r\n Ti.App.iOS.addEventListener('usernotificationsettings', function eventUserNotificationSettings() {\r\n Ti.App.iOS.removeEventListener('usernotificationsettings', eventUserNotificationSettings);\r\n \r\n Ti.Network.registerForPushNotifications({\r\n success: successCallback,\r\n error: errorCallback,\r\n callback: notificationsCallback\r\n });\r\n });\r\n \r\n Ti.App.iOS.registerUserNotificationSettings({\r\n types: [\r\n Ti.App.iOS.USER_NOTIFICATION_TYPE_ALERT,\r\n Ti.App.iOS.USER_NOTIFICATION_TYPE_SOUND,\r\n Ti.App.iOS.USER_NOTIFICATION_TYPE_BADGE\r\n ]\r\n });\r\n }\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS 13: registerForPushNotifications callback are not fired", "creator": { "name": "Andrea.Vitale", "key": "andrea.vitale", "displayName": "Andrea Vitale", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "Andrea.Vitale", "key": "andrea.vitale", "displayName": "Andrea Vitale", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Mac OS\r\nTitanium SDK 8.2.0.GA\r\nTitanium SDK 8.2.1 build picked up from 8_2_X branch.", "comment": { "comments": [ { "id": "452041", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "You should use the {{userNotificationSettings}} for iOS 10+. The other one was deprecated back then and should only be used for backwards compatibility.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-10-14T19:25:13.000+0000", "updated": "2019-10-14T19:25:13.000+0000" }, { "id": "452049", "author": { "name": "Andrea.Vitale", "key": "andrea.vitale", "displayName": "Andrea Vitale", "active": true, "timeZone": "Europe/Berlin" }, "body": "I use it, I updated the issue with the entire code. Previously I only shared the code that doesn't work because if I put a Ti.API.info inside the _usernotificationsettings_ event callback I can see it.. what's wrong?", "updateAuthor": { "name": "Andrea.Vitale", "key": "andrea.vitale", "displayName": "Andrea Vitale", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-10-15T05:32:42.000+0000", "updated": "2019-10-15T05:39:11.000+0000" }, { "id": "452066", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[Here|https://gist.github.com/hansemannn/f69e939563016bc56b92e6971284cbcf] is the push manager we use to register + listen to notifications. If it doesn't work with that one, the certificates you have will probably be the issue, but this is definitely no Titanium bug.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-10-15T15:29:01.000+0000", "updated": "2019-10-15T15:29:01.000+0000" }, { "id": "452088", "author": { "name": "Andrea.Vitale", "key": "andrea.vitale", "displayName": "Andrea Vitale", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hans thanks for your feedback! Unfortunately it is the same code that I have on my side. How can it be a certificate issue? On all devices with iOS 12.x push notifications works well. On devices with iOS 13 it doesn’t.\r\n\r\nCould [this|https://onesignal.com/blog/ios-13-introduces-4-breaking-changes-to-notifications/] be related?\r\n\r\nUPDATE: tried to send a push notification to this iOS 13 device and the notification arrives but the callback is never fired. So this doesn't seem related to a certificate issue.", "updateAuthor": { "name": "Andrea.Vitale", "key": "andrea.vitale", "displayName": "Andrea Vitale", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-10-16T05:33:28.000+0000", "updated": "2019-10-21T12:41:04.000+0000" }, { "id": "452612", "author": { "name": "dfreniche", "key": "dfreniche", "displayName": "Diego Freniche", "active": true, "timeZone": "Africa/Ceuta" }, "body": "I'm seeing this same problem. Building with Xcode 11.1 (11A1027), no callback while registering for notifications. Building with Xcode 10.3, everything works fine.", "updateAuthor": { "name": "dfreniche", "key": "dfreniche", "displayName": "Diego Freniche", "active": true, "timeZone": "Africa/Ceuta" }, "created": "2019-11-12T16:01:04.000+0000", "updated": "2019-11-12T16:01:04.000+0000" }, { "id": "452633", "author": { "name": "dfreniche", "key": "dfreniche", "displayName": "Diego Freniche", "active": true, "timeZone": "Africa/Ceuta" }, "body": "Update: in my case, it was my fault as I was using SDK 8.1.1 and Xcode 11. Looking at the [Compatibility Matrix|https://wiki.appcelerator.org/display/guides2/Titanium+Compatibility+Matrix#TitaniumCompatibilityMatrix-SupportedversionsofXcode] after being told by Rene Pot it's clear I needed 8.2.0.", "updateAuthor": { "name": "dfreniche", "key": "dfreniche", "displayName": "Diego Freniche", "active": true, "timeZone": "Africa/Ceuta" }, "created": "2019-11-13T10:47:59.000+0000", "updated": "2019-11-13T10:47:59.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }