Closed arsensgitacc closed 1 year ago
You may find more information if you connect the device you are reproducing this on to a developer machine so you may run commands on the device via adb
, and follow adb logcat
while you reproduce it.
I expect there will be a Java native stack trace somewhere in that adb logcat
that will have more details, until then, I'm unsure - not enough information to go on.
@mikehardy we went with passing debugToken to JS by reading them from .env using react-native-config. This is a more reliable solution. As I'm not sure how this scenario is working right now, I'll close the issue, thanks.
Indeed, passing the debug token in JS is one of the main reasons I implemented a custom app check provider in react native firebase, so JS level configuration could work. I think it's much easier and fits better with the react-native style of doing things
Issue
I am running
FIREBASE_APP_CHECK_DEBUG_TOKEN='5056014B-362D-4180-A169-9BA84DEE69EC' react-native run-android
and getting an error[Error: [appCheck/token-error] android.os.RemoteException: IntegrityService : Binder has died.]
when calling myinitAppCheck()
function. Function is bellow.I went through lib's android codes and
FIREBASE_APP_CHECK_DEBUG_TOKEN
is being got from envs and passed to BuildConfigBut it's being used only in
activate
function, which is deprecatedProject Files
Javascript
Click To Expand
#### `package.json`: ```json "@react-native-firebase/analytics": "18.5.0", "@react-native-firebase/app": "18.5.0", "@react-native-firebase/app-check": "18.5.0", "@react-native-firebase/auth": "18.5.0", "@react-native-firebase/crashlytics": "18.5.0", "@react-native-firebase/dynamic-links": "18.5.0", "@react-native-firebase/messaging": "18.5.0", "@react-native-firebase/perf": "18.5.0", "@react-native-firebase/remote-config": "18.5.0", ``` #### `firebase.json` for react-native-firebase v6: ```json { "react-native": { "crashlytics_disable_auto_disabler": true, "crashlytics_debug_enabled": true, "crashlytics_auto_collection_enabled": true, "perf_auto_collection_enabled": true, "analytics_auto_collection_enabled": true } } ```
Environment
Click To Expand
**`react-native info` output:** ``` OS: macOS 13.6 CPU: (10) arm64 Apple M1 Pro Memory: 77.22 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 18.15.0 - /var/folders/9v/73q5mbtj4pz22j7l16wkrs280000gn/T/yarn--1697135375138-0.1936903178077174/node Yarn: 1.22.19 - /var/folders/9v/73q5mbtj4pz22j7l16wkrs280000gn/T/yarn--1697135375138-0.1936903178077174/yarn npm: 9.6.4 - /opt/homebrew/bin/npm Watchman: 2023.05.01.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.12.1 - /Users/arsenananikyan/.rvm/rubies/ruby-2.7.6/bin/pod SDKs: iOS SDK: Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4 Android SDK: Not Found IDEs: Android Studio: 2022.2 AI-222.4459.24.2221.9971841 Xcode: 14.3.1/14E300c - /usr/bin/xcodebuild Languages: Java: 11.0.19 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.2.0 => 18.2.0 react-native: 0.71.13 => 0.71.13 react-native-macos: Not Found npmGlobalPackages: *react-native*: Not Found ``` - **Platform that you're experiencing the issue on**: - [ ] iOS - [ ] Android - [ ] **iOS** but have not tested behavior on Android - [x] **Android** but have not tested behavior on iOS - [ ] Both - **`react-native-firebase` version you're using that has this issue:** - `e.g. 18.5.0`
React Native Firebase
andInvertase
on Twitter for updates on the library.