-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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 14 Broadcast Receiver flag #37769
Comments
That's a valid report, thanks for sharing. We're tracking this and other Android 14 required tasks internally. |
Hi! My understanding it's a blocker for Android 14 support with RN integration. Do we need help to get a code change for this issue or there is already someone working on it? If yes, what's the timeline for this fix? Thank you! |
Same here.
buildscript {
ext {
// ...
compileSdkVersion = 34 // Android 14
targetSdkVersion = 34 // Android 14
// ...
}
}
|
@LeonidKokhnovich if you wish to send a PR, please do. We could backport it to 0.71/0.72 if needed |
Im running into the same problem, app crashing on startup
|
PR was merged #38256 |
|
Closing as for this
It will make it in 0.73 or you can ask for a backport in this working group: |
Thanks! |
Could you link the source of this statement? |
Sorry, it was just my conclusion after reading this thread, seeing the code changes in the PR and fighting with this problem for several hours while attempting to upgrade to Android 14 |
Has anyone solved this problem without upgrading RN? We're currently using RN 0.69, and we haven't found a way to make it work with Android 14. |
@dominikwagner as long as you do not target a new Android version it should not break your running app, at least for while, so you have time to update RN. |
Does anyone know an alternative solution? |
Any ideia when (and version) this fix will be applied? |
Description
Android 14 requires the flag
RECEIVER_NOT_EXPORTED
orRECEIVER_EXPORTED
whenregisterReceiver
Maybe related to this issue
#31870
React Native Version
0.71.10
Output of
npx react-native info
System:
OS: macOS 13.4
CPU: (8) arm64 Apple M2
Memory: 55.25 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.0.0 - /opt/homebrew/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 9.6.4 - /opt/homebrew/bin/npm
Watchman: 2023.05.15.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.12.1 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2022.2 AI-222.4459.24.2221.10121639
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
Languages:
Java: 17.0.6 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.71.10 => 0.71.10
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
Set
targetSdkPreview
andcompileSdkPreview
toUpsideDownCake
and build an app for Android.The application will be crashed immediately after opening.
Snack, code example, screenshot, or link to a repository
The text was updated successfully, but these errors were encountered: