Skip to content

Android 14 Support #22

Description

@SnowDiamond

Plugin doesn't work with Android 14. Error message:

One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified

I suppose fix should be simple in file PrinterStatusBroadcastReceiver.java

-        context.registerReceiver(receiver, filter);
+        if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.TIRAMISU) {
+            context.registerReceiver(receiver, filter, Context.RECEIVER_EXPORTED);
+        } else {
+            context.registerReceiver(receiver, filter);
+        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions