Skip to content

Error: java.lang.SecurityException when registering a receiver - Android 14  #303

@lorikgashi

Description

@lorikgashi

Getting this issue on Android 14,

Version: 0.19.1

Stack trace:

Fatal Exception: java.lang.SecurityException
com.test.test.test: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts

android.os.Parcel.createExceptionOrNull (Parcel.java:3057)
android.os.Parcel.createException (Parcel.java:3041)
android.os.Parcel.readException (Parcel.java:3024)
android.os.Parcel.readException (Parcel.java:2966)
android.app.IActivityManager$Stub$Proxy.registerReceiverWithFeature (IActivityManager.java:5684)
android.app.ContextImpl.registerReceiverInternal (ContextImpl.java:1852)
android.app.ContextImpl.registerReceiver (ContextImpl.java:1792)
android.app.ContextImpl.registerReceiver (ContextImpl.java:1780)
android.content.ContextWrapper.registerReceiver (ContextWrapper.java:755)
com.ReactNativeBlobUtil.ReactNativeBlobUtilReq.run (ReactNativeBlobUtilReq.java:295)
com.ReactNativeBlobUtil.ReactNativeBlobUtilImpl.fetchBlob (ReactNativeBlobUtilImpl.java:322)
com.ReactNativeBlobUtil.ReactNativeBlobUtil.fetchBlob (ReactNativeBlobUtil.java:199)

https://developer.android.com/about/versions/14/behavior-changes-14#runtime-receivers-exported

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions