Hi everyone,
I’m struggling with the new Firebase Realtime Database component (the one that requires the google-services.json file). I’ve successfully migrated from the legacy component, but I’ve encountered a major issue during the development phase.
The Problem: The component works perfectly when I build and install the APK, but it fails to fetch or send any data when using the Kodular Companion. I receive a “Permission Denied” or it simply fails to trigger the DataChanged event.
What I’ve tried so far:
- Security Rules: I used a Python script to temporarily set my Firebase Rules to
.read: trueand.write: true. Even with the database wide open, the Companion still cannot access the data. - Package Name: My
google-services.jsoncontains my specific Package Name (e.g.,com.myname.myapp). I suspect the Companion (which usesio.kodular.companion) might be causing a mismatch. - Authentication: I tried using the Firebase Auth component for a Google Sign-in, but as we know, Auth often fails in the Companion due to SHA-1 mismatches.
My Questions:
- Is it possible to use the new Firebase Realtime Database component within the Companion without compiling an APK every time?
- Is there a way to bypass the Package Name/SHA-1 check during development so I can test my logic in real-time?
- Do I need to add the Kodular Companion’s Package Name (
io.kodular.companion) to my Firebase Project settings as a secondary app?
I have over 3,000 blocks in my project, so testing via APK only is extremely time-consuming. Any advice or workarounds would be greatly appreciated!
Thanks in advance.