{ "id": "172344", "key": "TIMOB-26437", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2018-10-05T04:01:05.000+0000", "created": "2018-09-25T09:14:57.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "ios", "ios-12", "sdk-7.4.0.GA" ], "versions": [], "issuelinks": [ { "id": "56903", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "172244", "key": "TIMOB-26399", "fields": { "summary": "iOS: Several issues with push-notifications since 7.3.x", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-10-05T08:22:30.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": [], "description": "Ti.Network.registerForPushNotifications callback not working when application resume.\r\n{code:java}\r\nTi.App.iOS.addEventListener('usernotificationsettings', function registerForPush() {\r\n\t\t\t// Remove event listener once registered for push notifications\r\n\t\t\tTi.App.iOS.removeEventListener('usernotificationsettings', registerForPush);\r\n\r\n\t\t\tTi.Network.registerForPushNotifications({\r\n\t\t\t\tsuccess : deviceTokenSuccess,\r\n\t\t\t\terror : deviceTokenError,\r\n\t\t\t\tcallback : receivePush\r\n\t\t\t});\r\n\t\t});\r\n{code}\r\nit's working find when application was killed but when application resume and got notification, Open application from notifcation center receivcePush not call.", "attachment": [ { "id": "65666", "filename": "ScreenRecording_09-28-2018 08-37-14 (1).m4v", "author": { "name": "iblack.dum", "key": "iblack.dum", "displayName": "Sathaphorn Kerdmalai", "active": true, "timeZone": "Asia/Bangkok" }, "created": "2018-09-28T01:42:38.000+0000", "size": 4245017, "mimeType": "video/x-m4v" } ], "flagged": false, "summary": "Ti.Network.registerForPushNotifications callback not working when application resume.", "creator": { "name": "iblack.dum", "key": "iblack.dum", "displayName": "Sathaphorn Kerdmalai", "active": true, "timeZone": "Asia/Bangkok" }, "subtasks": [], "reporter": { "name": "iblack.dum", "key": "iblack.dum", "displayName": "Sathaphorn Kerdmalai", "active": true, "timeZone": "Asia/Bangkok" }, "environment": "*IOS*", "closedSprints": [ { "id": 1078, "state": "closed", "name": "2018 Sprint 20 SDK", "startDate": "2018-09-23T16:57:58.349Z", "endDate": "2018-10-07T16:57:00.000Z", "completeDate": "2018-10-07T23:31:40.476Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "442026", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\nThanks for sharing this. Can you share full test code to reproduce the issue on our end? Also share your complete environment details.", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-09-25T11:03:37.000+0000", "updated": "2018-09-25T11:03:37.000+0000" }, { "id": "442031", "author": { "name": "iblack.dum", "key": "iblack.dum", "displayName": "Sathaphorn Kerdmalai", "active": true, "timeZone": "Asia/Bangkok" }, "body": "\r\n{code:java}\r\nif (parseInt(Ti.Platform.version.split(\".\")[0]) >= 8) {\r\n\r\n\t\t// Wait for user settings to be registered before registering for push notifications\r\n\t\tTi.App.iOS.addEventListener('usernotificationsettings', function registerForPush() {\r\n\t\t\t// Remove event listener once registered for push notifications\r\n\t\t\tTi.App.iOS.removeEventListener('usernotificationsettings', registerForPush);\r\n\r\n\t\t\tTi.Network.registerForPushNotifications({\r\n\t\t\t\tsuccess : deviceTokenSuccess,\r\n\t\t\t\terror : deviceTokenError,\r\n\t\t\t\tcallback : receivePush\r\n\t\t\t});\r\n\t\t});\r\n\r\n\t\t// Register notification types to use\r\n\t\tTi.App.iOS.registerUserNotificationSettings({\r\n\t\t\ttypes : [Ti.App.iOS.USER_NOTIFICATION_TYPE_ALERT, Ti.App.iOS.USER_NOTIFICATION_TYPE_SOUND, Ti.App.iOS.USER_NOTIFICATION_TYPE_BADGE]\r\n\t\t});\r\n\t}\r\n{code}\r\nHere is code when i register push notification.\r\n{code:java}\r\nfunction receivePush(e) {\r\n var inBackground = e.inBackground;\r\n alert('receivePush ' + JSON.stringify(e));\r\n }\r\n{code}\r\nI tested when i killed app will alert when open app from notfication center.\r\nafter that i send push message again its just only open app but not alert data from push notification.", "updateAuthor": { "name": "iblack.dum", "key": "iblack.dum", "displayName": "Sathaphorn Kerdmalai", "active": true, "timeZone": "Asia/Bangkok" }, "created": "2018-09-25T13:13:42.000+0000", "updated": "2018-09-25T13:13:42.000+0000" }, { "id": "442091", "author": { "name": "iblack.dum", "key": "iblack.dum", "displayName": "Sathaphorn Kerdmalai", "active": true, "timeZone": "Asia/Bangkok" }, "body": "Do you have any ideas?.\r\nI think on ios12 apple changed how to handle push notification when the application in the foreground. ", "updateAuthor": { "name": "iblack.dum", "key": "iblack.dum", "displayName": "Sathaphorn Kerdmalai", "active": true, "timeZone": "Asia/Bangkok" }, "created": "2018-09-27T02:06:05.000+0000", "updated": "2018-09-27T02:06:05.000+0000" }, { "id": "442095", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "\r\n[~iblack.dum],\r\nThanks for your feedback. Can you send us a screenshot which displays the issue ?", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-09-27T06:21:59.000+0000", "updated": "2018-09-27T06:21:59.000+0000" }, { "id": "442125", "author": { "name": "iblack.dum", "key": "iblack.dum", "displayName": "Sathaphorn Kerdmalai", "active": true, "timeZone": "Asia/Bangkok" }, "body": "I'll send to you but I think we have to use \r\n\r\n{code:java}\r\n- (void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions))completionHandler {\r\n}\r\n- (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(nonnull UNNotificationResponse *)response withCompletionHandler:(nonnull void (^)(void))completionHandler {\r\n}\r\n{code}\r\nto handler push notification when an application on the foreground.", "updateAuthor": { "name": "iblack.dum", "key": "iblack.dum", "displayName": "Sathaphorn Kerdmalai", "active": true, "timeZone": "Asia/Bangkok" }, "created": "2018-09-27T17:07:49.000+0000", "updated": "2018-09-27T17:07:49.000+0000" }, { "id": "442136", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~iblack.dum], What's the update of your issue. Does that fix your issue? Send us screenshot which displays the issue. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-09-27T21:49:16.000+0000", "updated": "2018-09-27T21:49:16.000+0000" }, { "id": "442147", "author": { "name": "iblack.dum", "key": "iblack.dum", "displayName": "Sathaphorn Kerdmalai", "active": true, "timeZone": "Asia/Bangkok" }, "body": " [^ScreenRecording_09-28-2018 08-37-14 (1).m4v] \r\n\r\nSee step from a video.\r\n\r\nStep 1: Application does not open yet send a push notification will open an application alert data from a push.\r\nStep 2: Application on background, and send a push notification will open an application but receviePush function not called.\r\nStep 3: Application on a foreground, and send a push notification. It still displays a notification on the notification center.", "updateAuthor": { "name": "iblack.dum", "key": "iblack.dum", "displayName": "Sathaphorn Kerdmalai", "active": true, "timeZone": "Asia/Bangkok" }, "created": "2018-09-28T01:46:59.000+0000", "updated": "2018-09-28T01:46:59.000+0000" }, { "id": "442207", "author": { "name": "iblack.dum", "key": "iblack.dum", "displayName": "Sathaphorn Kerdmalai", "active": true, "timeZone": "Asia/Bangkok" }, "body": "Hi Sharif,\r\nDo you have any ideas? How to fix it?", "updateAuthor": { "name": "iblack.dum", "key": "iblack.dum", "displayName": "Sathaphorn Kerdmalai", "active": true, "timeZone": "Asia/Bangkok" }, "created": "2018-10-02T01:26:37.000+0000", "updated": "2018-10-02T01:26:37.000+0000" }, { "id": "442274", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~iblack.dum] Can you please verify your issue using sdk 7.4.1 as several notification issues have been fixed in TIMOB-26399? You can get 7.4.1 sdk directly via CLI -\r\n appc ti sdk install -b 7_4_X\r\nThanks!\r\n", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-10-04T07:22:31.000+0000", "updated": "2018-10-04T07:22:31.000+0000" }, { "id": "442293", "author": { "name": "iblack.dum", "key": "iblack.dum", "displayName": "Sathaphorn Kerdmalai", "active": true, "timeZone": "Asia/Bangkok" }, "body": "Yes, it's work perfectly. What's time will you release this version officially.\r\n", "updateAuthor": { "name": "iblack.dum", "key": "iblack.dum", "displayName": "Sathaphorn Kerdmalai", "active": true, "timeZone": "Asia/Bangkok" }, "created": "2018-10-04T13:57:14.000+0000", "updated": "2018-10-04T13:57:14.000+0000" }, { "id": "442319", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~iblack.dum]Thanks for confirming. We are running one iOS 12 issue TIMOB-26391. As soon as it get fixed, we will go for release. Thanks!", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-10-05T03:56:11.000+0000", "updated": "2018-10-05T03:56:11.000+0000" }, { "id": "442325", "author": { "name": "iblack.dum", "key": "iblack.dum", "displayName": "Sathaphorn Kerdmalai", "active": true, "timeZone": "Asia/Bangkok" }, "body": "I got this issue too. Random freeze some view. \r\nTi SDK 7.2.0 .\r\nif I use SDK 7.1.0 this issue will resolve. ", "updateAuthor": { "name": "iblack.dum", "key": "iblack.dum", "displayName": "Sathaphorn Kerdmalai", "active": true, "timeZone": "Asia/Bangkok" }, "created": "2018-10-05T08:22:30.000+0000", "updated": "2018-10-05T08:22:30.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }