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

App crash in Android 12 #190

Open
monikasavaliya opened this issue Mar 1, 2022 · 2 comments
Open

App crash in Android 12 #190

monikasavaliya opened this issue Mar 1, 2022 · 2 comments

Comments

@monikasavaliya
Copy link

  • Crash Log
    java.lang.IllegalArgumentException: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
    Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
    at android.app.PendingIntent.checkFlags(PendingIntent.java:382)
    at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:673)
    at android.app.PendingIntent.getBroadcast(PendingIntent.java:660)
    at com.klinker.android.send_message.Transaction.sendSmsMessage(Transaction.java:267)
    at com.klinker.android.send_message.Transaction.sendNewMessage(Transaction.java:158)
    at com.klinker.android.send_message.Transaction.sendNewMessage(Transaction.java:172)
@monikasavaliya monikasavaliya changed the title Crash app in Android 12 App crash in Android 12 Mar 1, 2022
@tibbi
Copy link

tibbi commented Apr 13, 2022

doesnt look like creating PRs makes sense, so you can try using my fork of the library with including com.github.tibbi:android-smsmms:5413948b41. It has only this 1 difference compared to the main project.

@masonljh
Copy link

masonljh commented May 20, 2022

doesnt look like creating PRs makes sense, so you can try using my fork of the library with including com.github.tibbi:android-smsmms:5413948b41. It has only this 1 difference compared to the main project.

thank you for sharing your pr
I hope your pr is merged.

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

No branches or pull requests

3 participants