Hi,
How can I fix app crashes when firebase updates?
Thanks.
Hi,
How can I fix app crashes when firebase updates?
Thanks.
I have already made some apps following the same procedure both for the creation of the Firebase DB and for the app blocks...
It seems, but not always, that the problem occurs with the DataChanged event... both if I change the Tag value from the app and if I change it from the Firebase console...
I do not have any security rules set....
and again ?
the app closes..
and then i have to reopen it...
could this be the area chosen for the server?
Possibly, The Firebase component will only work with the us-central server.
how can i check the server location... i dont remember when i created it...
Should be showing on your firebase console page
This is location: LocalitĂ del database: (us-central1) - Stati Uniti
so it shouldn't depend on the location...
Any solutions....?
Use logcat to find out what's going on
Taifun
09-24 12:04:52.261 1616 1616 E migroup.PWRGVM: Not starting debugger since process cannot load the jdwp agent.
09-24 12:04:52.578 648 1073 E HWComposer: getSupportedContentTypes: getSupportedContentTypes failed for display 0: Unsupported (8)
09-24 12:04:53.646 1616 1616 E Form : Form Screen1 ErrorOccurred, errorNumber = 503, componentType = BluetoothClient, functionName = IsDevicePaired, messages = The specified address is not a valid Bluetooth MAC address.
09-24 12:04:53.832 1616 1616 E AndroidRuntime: FATAL EXCEPTION: main
09-24 12:04:53.832 1616 1616 E AndroidRuntime: Process: appinventor.ai_tnnomigroup.PWRGVMP, PID: 1616
09-24 12:04:53.832 1616 1616 E AndroidRuntime: com.google.appinventor.components.runtime.errors.YailRuntimeError: Value failed to convert from JSON.
09-24 12:04:53.832 1616 1616 E AndroidRuntime: at com.google.appinventor.components.runtime.FirebaseDB.DataChanged(FirebaseDB.java:561)
09-24 12:04:53.832 1616 1616 E AndroidRuntime: at com.google.appinventor.components.runtime.FirebaseDB$1$1.run(FirebaseDB.java:154)
09-24 12:04:53.832 1616 1616 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:938)
09-24 12:04:53.832 1616 1616 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
09-24 12:04:53.832 1616 1616 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:201)
09-24 12:04:53.832 1616 1616 E AndroidRuntime: at android.os.Looper.loop(Looper.java:288)
09-24 12:04:53.832 1616 1616 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7941)
09-24 12:04:53.832 1616 1616 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
09-24 12:04:53.832 1616 1616 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:553)
09-24 12:04:53.832 1616 1616 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
09-24 12:04:53.919 648 648 E BpTransactionCompletedListener: Failed to transact (-32)
this is what happens... as I start the app it closes!
You are not showing us all your relevant blocks, especially those at start up.
09-24 12:04:53.646 1616 1616 E Form : Form Screen1 ErrorOccurred, errorNumber = 503, componentType = BluetoothClient, functionName = IsDevicePaired, messages = The specified address is not a valid Bluetooth MAC address.
09-24 12:04:53.832 1616 1616 E AndroidRuntime: FATAL EXCEPTION: main
yes sorry this was the log of the final app but I have the same problem with the blocks I attached...
anyway a strange thing:
if I use the projectBucket: 00000 the error occurs
with the other tags no....
I deleted the projectBucket 00000 from the firebase console, then I recreated it with the app and now it doesn't crash....