Skip to content

make PendingIntents compatible with Android 12#1400

Closed
AndreasBoehm wants to merge 1 commit intoOneSignal:mainfrom
AndreasBoehm:adjust-pendingintent-flags-for-android12
Closed

make PendingIntents compatible with Android 12#1400
AndreasBoehm wants to merge 1 commit intoOneSignal:mainfrom
AndreasBoehm:adjust-pendingintent-flags-for-android12

Conversation

@AndreasBoehm
Copy link
Copy Markdown

@AndreasBoehm AndreasBoehm commented Jul 30, 2021

Because Android 12 forces mutability to be specified when creating a PendingIntent I got a couple of errors in logcat when starting my app targeting Android SDK 31 (Android 12).
https://developer.android.com/about/versions/12/behavior-changes-12#pending-intent-mutability

This PR fixes those issues on OneSignal side. (#1408)
The be fully compatible we would need to upgrade workmanager to at least 2.7.0-alpha05 but I think that we should wait with that until 2.7.0 is stable.


This change is Reviewable

@jkasten2
Copy link
Copy Markdown
Member

@AndreasBoehm Thanks for the PR. There was a recent change in PR #1377 that moved this logic around. I recreated PR #1411 based on your changes and reference this PR to give you credit.

@jkasten2 jkasten2 closed this Aug 13, 2021
@AndreasBoehm AndreasBoehm deleted the adjust-pendingintent-flags-for-android12 branch August 13, 2021 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants