GetTagList does not seem to work

Here's another straw to grab at ...

  • There's a Firebase block, Unauthenticate. I vaguely remember it being the solution to problems involving interactions between multiple connections on multiple buckets across multiple screens, like this project has. (I haven't found the original thread and reference yet.)

Unauthenticate()

Unauthenticate from Firebase.

Firebase keeps track of credentials in a cache in shared_prefs It will re-use these credentials as long as they are valid. Given That we retrieve a FirebaseToken with a version long life, this will effectively be forever. Shared_prefs survive an application update and depending on how backup is configured on a device, it might survive an application removal and reinstallation.

Normally this is not a problem, however if we change the credentials used, for example the App author is switching from one Firebase account to another, or invalided their firebase.secret, this cached credential is invalid, but will continue to be used, which results in errors.

This function permits us to unauthenticate, which tosses the cached credentials. The next time authentication is needed we will use our current FirebaseToken and get fresh credentials.

1 Like

I will make sure to check this and to try using a timer as Chris Ward suggested as soon as I can. I will keep you updated on that!

Perhaps something has recently changed in FireBase or App Inventor that results in GetTagList failing. I think now is the time to ask Evan if we are barking up the wrong tree.

Firebase GetTagList will not fire if the tag is empty....

I think that has been explored by Ignacio, we have said that a tag name typo could also be the cause.

Here's a wild coincidence ...


This Firebase user suggested a Taglist starting with the number 1 would not work.
This database fits that description.

1 Like

Yes, I was just about to say that, having run a test. Change 1:, 2:, 3:, in productos to 01:,02:, 03:, and you will find that getTagList suddenly works

1 Like

I had inserted a tag 0, but it did not help.

Nope, I can get individual tags, but my TagList event sits there like a lox.

um you are sending 01 as a number which would end up being 1, send 01 as text ?

image

Output:

["a","b","c"]

I am working in the OP database.
Adding a text tag ("ABG")

restored functionality to the Taglist operation.

I never cared for integer tags in Firebase.
In this app, the name concatenated with an optional numeric de-duplicator should have been the tag.

(added to FAQ)


item 2

It works OK if Firebase itself adds integers starting from 1 in its data structure, but not from the firebase component for some strange reason....

It worked indeed, I can use the Taglist operation now that you added that text tag. I think I can mark ABG's answer as the solution for this topic, if you all agree. This has all been extremely helpful, and I think I may be able to continue my work now. I am so thankful!

1 Like

Very well spotted ABG and TimAI2 :dart:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.