Skip to content

One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts #70

@FelipeGAlmeida

Description

@FelipeGAlmeida

With the advent of Android 14, the receivers must be updated to not throw a security exception.

More info:
https://stackoverflow.com/questions/77235063/one-of-receiver-exported-or-receiver-not-exported-should-be-specified-when-a-rec

TL;DL;

We need to update this line:
context.registerReceiver(this, filter);

To something like:
context.registerReceiver(this, filter, RECEIVER_NOT_EXPORTED);

Thanks in advance.

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