Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed createPendingIntent() from FLAG_IMMUTABLE to FLAG_MUTABLE #79

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

drunnells
Copy link

The createPendingIntent() in NfcForegroundDispatchFilter's with FLAG_IMMUTABLE was causing the event.intent action and type to be null while reading NDEF tags with Titanium SDK 12.1.2.GA with ForegroundDispatch. Changing this to FLAG_MUTABLE seemed to resolve the problem. I based this change on the solution found here: https://stackoverflow.com/questions/76655730/why-nfc-works-with-pendingintent-flag-mutable-and-not-with-pendingintent-flag-im

@m1ga
Copy link
Contributor

m1ga commented Sep 9, 2023

Thank you for the PR. Will test it 👍

Test version:
ti.nfc-android-5.0.1.zip

We can merge #71 afterwards so it will be version 5.1.0 at the end

@juanmos
Copy link

juanmos commented Aug 16, 2024

Can we move this PR to master?

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.

3 participants