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

Android 31 hangs on never-ending printer search #61

Closed
igorsantos07 opened this issue Oct 13, 2023 · 1 comment
Closed

Android 31 hangs on never-ending printer search #61

igorsantos07 opened this issue Oct 13, 2023 · 1 comment

Comments

@igorsantos07
Copy link

igorsantos07 commented Oct 13, 2023

Not going to explain how to reproduce this since, given the log I got from logcat in Android Studio below, it's probably happening in any app targeting API 31+

java.lang.IllegalArgumentException: com.package.name: 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:378)
at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:648)
at android.app.PendingIntent.getBroadcast(PendingIntent.java:635)
at starprnt.cordova.StarPRNT.initialize(StarPRNT.java:114)

@igorsantos07
Copy link
Author

lol this is actually a bug on the code we wrote on our own fork to request the permissions the plugin never did

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

1 participant