Could not convert class android.os.UserHandle
Description
After some time I came back to one of our project and suddenly find out that after installing debug build on Android the app is working as expected. But, after killing it and attempting to open again it fails with Could not convert class android.os.UserHandle error. I'm not sure is it related because I don't use react-native-notifications, but I use getLaunchOptions() in MainActivity with new ReactActivityDelegate to pass notification from android layer to JS, so I tried this solution https://github.com/wix/react-native-notifications/issues/287#issuecomment-852067425 but it's not working for me.
I'm facing this problem only on Xiaomi Redmi Note 11S. It may exist on other devices, but I was able to check only Samsung and it's ok there.
React Native Version
0.67.5
Output of npx react-native info
System: OS: macOS 12.6.3 CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz Memory: 28.05 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 19.6.0 - /usr/local/bin/node Yarn: 1.22.18 - /usr/local/bin/yarn npm: 9.4.0 - /usr/local/bin/npm Watchman: 2023.04.03.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.11.3 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3 Android SDK: API Levels: 28, 29, 30, 31, 32 Build Tools: 28.0.3, 29.0.2, 30.0.2, 30.0.3, 31.0.0, 32.0.0, 32.1.0, 33.0.0, 33.0.0 System Images: android-30 | Google Play Intel x86 Atom, android-31 | Google Play Intel x86 Atom_64, android-32 | Google Play Intel x86 Atom_64, android-33 | Google APIs Intel x86 Atom_64 Android NDK: Not Found IDEs: Android Studio: 2021.1 AI-211.7628.21.2111.8193401 Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild Languages: Java: 11.0.11 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.67.5 => 0.67.5 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found
Steps to reproduce
- Install the app
- Kill the app
- Open app again
Snack, code example, screenshot, or link to a repository
| :warning: | Unsupported Version of React Native |
|---|---|
| :information_source: | It looks like your issue or the example you provided uses an unsupported version of React Native. Due to the number of issues we receive, we're currently only accepting new issues against one of the supported versions. Please upgrade to latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If you cannot upgrade, please open your issue on StackOverflow to get further community support. |
This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.
This issue was closed because the author hasn't provided the requested feedback after 7 days.