Able to launch fine on appgyver preview on both desktop and android app. However once I install the built android app, it is failing to launch due to some firebase initialisation issue as per adb logs on the device:
Error: You attempted to use a firebase module that’s not installed on your Android project by calling firebase.crashlytics().^M
07-27 12:34:09.327 24277 24320 E ReactNativeJS: ^M
07-27 12:34:09.327 24277 24320 E ReactNativeJS: Ensure you have:^M
07-27 12:34:09.327 24277 24320 E ReactNativeJS: ^M
07-27 12:34:09.327 24277 24320 E ReactNativeJS: 1) imported the ‘io.invertase.firebase.crashlytics.ReactNativeFirebaseCrashlyticsPackage’ module in your ‘MainApplication.java’ file.^M
07-27 12:34:09.327 24277 24320 E ReactNativeJS: ^M
07-27 12:34:09.327 24277 24320 E ReactNativeJS: 2) Added the ‘new ReactNativeFirebaseCrashlyticsPackage()’ line inside of the RN ‘getPackages()’ method list.^M
07-27 12:34:09.327 24277 24320 E ReactNativeJS: ^M
07-27 12:34:09.335 24277 24320 E ReactNativeJS: Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
07-27 12:34:09.340 24277 24321 E AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
07-27 12:34:09.340 24277 24321 E AndroidRuntime: Process: com.crewards.offers, PID: 24277
07-27 12:34:09.340 24277 24321 E AndroidRuntime: com.facebook.react.common.JavascriptException: Error: You attempted to use a firebase module that’s not installed on your Android project by calling firebase.crashlytics().^M
The above error was with 2.6.8. however I tried earlier with 2.8.31 and 2.8.33 but saw the same blank screen issue there too. Attached the log with 2.8.x android-debug1.log (854.0 KB)
Thanks, we’ll look into it. Have you checked that all the flows you are using in the app are up to date before building? You can install updates from the marketplace.
Thanks. Yes The only flow I am using in this case is initialise firebase on the global canvas after app launch event. It is the latest one. Also the app runs fine in the appgyver preview app on the same device
So I removed the firebase flow just to isolate the issue and generated the build again with 2.8.33 run time.
This time I see blank screen. After showing splash screen it is unable to find main activity and shows blank screen ( main page in appgyver has navigation enabled with 3 tabs, can see all 3 tabs in preview app)
below are the adb logs:
7-28 15:28:21.586 942 981 I ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.crewards.offers/.SplashActivity bnds=[35,337][237,590]} from uid 10047
07-28 15:28:21.592 672 672 D QCOM PowerHAL: LAUNCH HINT: ON
07-28 15:28:21.593 672 672 D QCOM PowerHAL: Activity launch hint handled
07-28 15:28:21.596 672 672 D QCOM PowerHAL: LAUNCH HINT: ON
07-28 15:28:21.600 942 1073 W WindowManager: TaskSnapshotSurface.create: Failed to find main window for token=AppWindowToken{e0f8a1e token=Token{10ae59 ActivityRecord{f6922a0 u0 com.crewards.offers/.SplashActivity t195}}}
07-28 15:28:21.605 20198 20198 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@38772c8
07-28 15:28:21.623 942 4681 I ActivityTaskManager: START u0 {cmp=com.crewards.offers/.MainActivity} from uid 10325
07-28 15:28:21.629 942 2144 W ActivityTaskManager: Duplicate finish request for ActivityRecord{f6922a0 u0 com.crewards.offers/.SplashActivity t195 f}
07-28 15:28:21.683 942 1077 I ActivityTaskManager: Displayed com.crewards.offers/.MainActivity: +93ms
07-28 15:28:21.690 24660 24660 I GoogleInputMethodService: GoogleInputMethodService.onFinishInput():3432
07-28 15:28:21.692 24660 24660 I GoogleInputMethodService: GoogleInputMethodService.onStartInput():1998
07-28 15:28:21.693 672 672 D QCOM PowerHAL: LAUNCH HINT: OFF
07-28 15:28:22.125 2191 2191 D zz : UtWallpaperService$UtEngine.onVisibilityChanged() false
07-28 15:28:22.129 2191 2191 D zz : UtRenderer.onNotVisible()
07-28 15:28:22.139 498 498 E Layer : [Surface(name=AppWindowToken{77eecdc token=Token{7f50d4f ActivityRecord{3746bae u0 com.google.android.apps.nexuslauncher/.NexusLauncherActivity t139}}})/@0xadad82d - animation-leash#0] No local sync point found
07-28 15:28:22.139 498 498 E Layer : [Surface(name=AppWindowToken{9fd2e04 token=Token{f7c7a17 ActivityRecord{945ee96 u0 com.crewards.offers/.MainActivity t195}}})/@0x40fe151 - animation-leash#0] No local sync point found
07-28 15:28:22.181 2853 20646 I PBSessionCacheImpl: Deleted sessionId[12549254022056492] from persistence.
07-28 15:28:22.223 2853 2986 W SearchServiceCore: Abort, client detached.
07-28 15:28:22.227 2853 2986 I MicroDetectionState: Should stop hotword detection immediately - true
07-28 15:28:29.084 1366 1667 D BluetoothAdapter: isLeEnabled(): ON
07-28 15:28:29.109 1366 1667 D BluetoothAdapter: isLeEnabled(): ON
07-28 15:28:29.123 1919 2035 I bt_stack: [INFO:btif_config.cc(647)] hash_file: Disabled for multi-user
07-28 15:28:29.124 1919 2035 I bt_stack: [INFO:btif_config.cc(689)] write_checksum_file: Disabled for multi-user, since config changed removing checksums.
07-28 15:28:29.127 1919 2035 D AdapterProperties: Name is: 5869c81f
07-28 15:28:29.127 942 942 D BluetoothManagerService: Bluetooth Adapter name changed to 5869c81f
07-28 15:28:29.128 942 942 D BluetoothManagerService: Stored Bluetooth name: 5869c81f
07-28 15:28:29.162 1366 1667 D BluetoothAdapter: isLeEnabled(): ON
07-28 15:28:29.183 1366 1667 D BluetoothAdapter: isLeEnabled(): ON
07-28 15:28:29.184 1919 2035 I bt_stack: [INFO:btif_config.cc(647)] hash_file: Disabled for multi-user
07-28 15:28:29.184 1919 2035 I bt_stack: [INFO:btif_config.cc(689)] write_checksum_file: Disabled for multi-user, since config changed removing checksums.
07-28 15:28:29.190 942 942 D BluetoothManagerService: Bluetooth Adapter name changed to 5869c81f
07-28 15:28:29.190 1919 2035 D AdapterProperties: Name is: 5869c81f
07-28 15:28:29.191 942 942 D BluetoothManagerService: Stored Bluetooth name: 5869c81f
07-28 15:28:32.218 2853 2986 I WorkerManager: dispose()
07-28 15:28:32.234 2853 2986 W A : Queue length for executor EventBus is now 11. Perhaps some tasks are too long, or the pool is too small.
07-28 15:28:33.017 29581 29650 E memtrack: Couldn’t load memtrack module
07-28 15:28:33.018 29581 29650 W android.os.Debug: failed to get memory consumption info: -1
07-28 15:28:33.921 668 668 I /vendor/bin/hw/android.hardware.health@2.0-service.marlin: SRAM data: 2530000
07-28 15:28:33.943 668 668 I /vendor/bin/hw/android.hardware.health@2.0-service.marlin: SRAM data: 2530000
07-28 15:28:33.973 672 672 E QCOM PowerHAL: extract_stats: failed to open: /d/wlan_wcnss/power_stats Error = No such file or directory
07-28 15:28:33.977 1938 2552 D PowerUI : can’t show warning due to - plugged: true status unknown: false
07-28 15:28:34.582 20781 20815 I GH.ConnLoggerV2: Session 19f33f14-cb21-42ef-baec-f176fe3e1263 expired
the Initialize firebase flow function seems to still be installed, and that is somehow causing the crash - You can remove it from the logic canvas’ Installed tab. But to resolve this issue quicker, could you install Get device token (beta) flow function and building again after that, to see if that fixes it (it has some additional plugins that are not included in the Initialize firebase flow)
Hi @Kristian_Gerkman . I am using firebase for storage through firestore. Do you mean " Get Firebase Device token" flow? and will this enable me to connect to firebase data connectors? and btw I dont use push notifications right now
Hi @Daniel_Jackson, looks like the OP has set his username to his email address, which is why it was included in the mail. By default your email will not be shared. Here’s the notification I got from you:
Also ping @bvk4you – you might want to change your profile info, if you don’t want your gmail address shared publicly.