Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-28476

Android: Add PendingIntent constants FLAG_IMMUTABLE and FLAG_MUTABLE

    Details

      Description

      Summary:
      When targeting Android 12 (aka: API Level 31), you must provide either a FLAG_IMMUTABLE or FLAG_MUTABLE when creating/getting a PendingIntent or else an exception will be thrown. This is a breaking-change made by Google.
      https://developer.android.com/about/versions/12/behavior-changes-12#pending-intent-mutability

      To-Do:
      Add the following constants to Titanium.

      • Ti.Android.FLAG_IMMUTABLE
      • Ti.Android.FLAG_MUTABLE

      When calling Ti.Android.createPendingIntent(), Titanium should automatically assign it the FLAG_IMMUTABLE constant unless the caller sets the FLAG_MUTABLE explicitly.

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              jquick Joshua Quick
              Reviewer:
              Joshua Quick
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration