App inventor button click firebase

Hello

When the button is pressed, the value is saved in firebase, and I want to load the saved value and assign it to the marker description. However, when saving to the db, it should be accumulated in the value described in the existing marker description. The values ​​stored in the db are 1, -1.
1

  • You do not set the value for the global id anywhgere in your blocks ?
  • Firebase does not work well when supplied numbers as nodes / tags by App Inventor

I generally avoid saving sums in Firebase, instead preferring to save individual items like Cambridge/helpful/ as a tag and a list of Clock1.SystemTimes as the value for that list.

This lets me use
component_method
to add individual helpful or not helpful events as they occur.

A well aimed .Taglist can return a list of the events, and you can show the length of the returned list in the appropriate marker (I assume).

Be sure to initialize the tag values as empty lists as you add new locations.