wonday / react-native-orientation-locker

A react-native module that can listen on orientation changing of device, get current orientation, lock to preferred orientation.
MIT License
761 stars 274 forks source link

Add RECEIVER_EXPORTED/RECEIVER_NOT_EXPORTED to support Android 14 #276

Closed klauskohut closed 1 year ago

klauskohut commented 1 year ago

Add RECEIVER_EXPORTED/RECEIVER_NOT_EXPORTED flag support to DevSupportManagerBase for Android 14 change. See https://developer.android.com/about/versions/14/behavior-changes-14#runtime-receivers-exported for details.

Without this fix, app crashes during launch because of : SecurityException: {package name here}: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts

zerbfra commented 1 year ago

This has to be merged ASAP - Android 14 crashes on startup!

wonday commented 1 year ago

Thanks