Need help with firebase project

Hi, I'm working on a project called "USTable" that track real-time seat availability using Firebase and QR code scanning. I've designed the app logic, but I'm encountering two blocking runtime errors right at the start or when trying to use core features:

  1. Runtime Error: invoke: unable to invoke method GetValue in object of type boolean. Irritants: ()
  • This error seems to occur when trying to use FirebaseDB.GetValue during screen initialization or LocalStorageDB.GetValue when initializing user state.
  1. Runtime Error: invoke: unable to invoke method DoScan in object of type boolean. Irritants: ()
  • This error occurs when the Button_ScanQR.Click event tries to call BarcodeScanner1.DoScan.

These errors suggest that the components (FirebaseSeatsDB, LocalStorageDB, BarcodeScanner1) are somehow being treated as a boolean (true/false) instead of the actual component object when the methods are called.

Project Overview:

  • Goal: Show real-time seat occupancy (free/occupied) on a map using dots drawn on Canvases.

  • Data: Stored in Firebase Realtime Database (structure included in PDF).

  • Updates: Users scan a QR code at a seat -> app asks for confirmation -> updates the seat status in Firebase -> updates are reflected in real-time for all users.

  • Persistence: User's currently occupied seat and usage history are stored using LocalStorageDB.

  • Components Used: FirebaseDB, LocalStorageDB, BarcodeScanner, Notifier, Clock, Buttons, Canvases, Arrangements, ListView.

Here are the project files:


Comp1001_Project.aia (969.7 KB)

Could anyone please help review the blocks (especially around initialization, Button_ScanQR.Click, and where FirebaseDB/LocalStorageDB.GetValue are called) and help me understand why these components might be failing to initialize or be referenced correctly, leading to the "object of type boolean" error? Any suggestions on how to fix this would be greatly appreciated!

I've checked the component names, basic Firebase URL configuration (though maybe I missed something subtle?), and component placement in the designer.

Thank you in advance for your time and expertise!
LFMelvin

Confirm you are working on iOS ?

Yes.

Sorry, It seems that I have misunderstand how the localise variable function works, I have fix those but still ran into the 2 runtime error.
Comp1001_Project.aia (969.5 KB)

I see you have a Firebase component.

Unfortunately,


that is not supported on iOS.

https://doesappinventorrunonios.com/

Thanks for that, I didn't even thought of that. (・_・; )
I'll try and find an android emulator to test it out.