{ "id": "176219", "key": "TIMOB-28476", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": [ { "id": "21201", "description": "", "name": "Release 10.1.0", "archived": false, "released": true, "releaseDate": "2021-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-08-25T15:29:31.000+0000", "created": "2021-06-07T23:11:14.000+0000", "epic": { "id": 176213, "key": "TIMOB-28470", "name": "Android 12: Implement Support", "summary": "Android 12: Implement Support", "color": { "key": "color_9" }, "done": false }, "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "intent", "pendingintent" ], "versions": [], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-08-25T15:29:31.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": "*Summary:*\r\nWhen targeting Android 12 (aka: API Level 31), you must provide either a [FLAG_IMMUTABLE|https://developer.android.com/reference/android/app/PendingIntent#FLAG_IMMUTABLE] or [FLAG_MUTABLE|https://developer.android.com/reference/android/app/PendingIntent#FLAG_MUTABLE] when creating/getting a {{PendingIntent}} or else an exception will be thrown. This is a breaking-change made by Google.\r\nhttps://developer.android.com/about/versions/12/behavior-changes-12#pending-intent-mutability\r\n\r\n*To-Do:*\r\nAdd the following constants to Titanium.\r\n* {{Ti.Android.FLAG_IMMUTABLE}}\r\n* {{Ti.Android.FLAG_MUTABLE}}\r\n\r\nWhen calling [Ti.Android.createPendingIntent()|https://developer.android.com/reference/android/app/PendingIntent#FLAG_MUTABLE], Titanium should automatically assign it the {{FLAG_IMMUTABLE}} constant unless the caller sets the {{FLAG_MUTABLE}} explicitly.\r\n", "attachment": [], "flagged": false, "summary": "Android: Add PendingIntent constants FLAG_IMMUTABLE and FLAG_MUTABLE", "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, "comment": { "comments": [ { "id": "458765", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/12890", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-06-14T18:44:51.000+0000", "updated": "2021-06-14T18:44:51.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }