{ "id": "172003", "key": "TIMOB-26259", "fields": { "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "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": "10000", "description": "", "name": "Done" }, "resolutiondate": "2018-10-26T00:04:52.000+0000", "created": "2018-08-04T00:55:32.000+0000", "epic": { "id": 172002, "key": "TIMOB-26258", "name": "Android P: Implement Support", "summary": "Android P: Implement Support", "color": { "key": "color_8" }, "done": false }, "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "notification", "shortcut" ], "versions": [], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-10-26T00:04:52.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Android P has a breaking change where it now requires flag \"FLAG_ACTIVITY_NEW_TASK\" to be set if an intent will be starting an activity from a non-activity. If the flag is missing, then it will fail to start the activity.\r\nhttps://developer.android.com/preview/behavior-changes#fant-required\r\n\r\nInvestigate if this will be an issue for the following:\r\n* Local notification pending intents via {{Ti.Android.NotificationManager}}.\r\n* Push notification pending intents via APS and cloud push module.\r\n* App shortcuts via \"com.android.launcher.action.INSTALL_SHORTCUT\" intents.\r\n* Anything else?\r\n", "attachment": [], "flagged": false, "summary": "Android: Investigate handling of missing FLAG_ACTIVITY_NEW_TASK on Android P", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 1073, "state": "closed", "name": "2018 Sprint 19 SDK", "startDate": "2018-09-09T21:02:56.422Z", "endDate": "2018-09-23T21:02:00.000Z", "completeDate": "2018-09-23T22:28:10.932Z", "originBoardId": 114 }, { "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 }, { "id": 1084, "state": "closed", "name": "2018 Sprint 21", "startDate": "2018-10-07T23:32:40.560Z", "endDate": "2018-10-21T23:32:00.000Z", "completeDate": "2018-10-21T23:19:05.460Z", "originBoardId": 114 }, { "id": 1088, "state": "closed", "name": "2018 Sprint 22", "startDate": "2018-10-21T23:20:52.653Z", "endDate": "2018-11-04T23:20:00.000Z", "completeDate": "2018-11-04T23:29:59.423Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "442975", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm not seeing any issues here.\r\n\r\nOur core Titanium code which calls {{startActivity()}} are done while an activity context is active. So, that part of the code is fine.\r\n\r\nOur push notification code is already setting the {{FLAG_ACTIVITY_NEW_TASK}} flag when calling {{startActivity()}}. So, that part is fine as well.\r\n[APSCloudPush.java#L377|https://github.com/appcelerator/aps_sdk/blob/master/android/cloudpush/APSCloudPush/src/main/java/com/appcelerator/aps/APSCloudPush.java#L377]\r\n[IntentReceiver.java#L42|https://github.com/appcelerator/aps_sdk/blob/master/android/cloudpush/APSCloudPush/src/main/java/com/appcelerator/aps/IntentReceiver.java#L42]\r\n\r\nClosing.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-10-26T00:04:39.000+0000", "updated": "2018-10-26T00:04:39.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }