Hi,
I want to check tag value in firebase in realtime. How to do this.
For eg.
If i store value “open” in tag then notifer show in app and when i store value “close” then notifier will dissmis but how can this possible in realtime.
Without closing app the notifier should dissmis
if tag value is close
How?
Is that possible to get data every 10 sec from firebase…
Is this blocks will check firebase tag value every time?
Srrazmi
(Web And App Developer)
August 1, 2019, 6:19pm
#9
Yes This Block Will Check Value In Every 10se And When Got Close Value It’s Will Be Dismissed And Checking Will Stop
And if again value will open then? Will it check
Srrazmi
(Web And App Developer)
August 1, 2019, 6:29pm
#11
if You Want To Make It Continuously The You Should Remove The Clock From Got Value
asimjib93
(Asim Jib)
August 1, 2019, 6:32pm
#12
There is something wrong in your code!
asimjib93
(Asim Jib)
August 1, 2019, 6:33pm
#13
Why should I use a variable??
Srrazmi
(Web And App Developer)
August 1, 2019, 6:35pm
#14
asimjib93:
should I use a variable
If We Not Use variable The Notifier Will Open In Every 10se And It’s Crash The App And Can’t Dismiss
asimjib93
(Asim Jib)
August 1, 2019, 6:37pm
#15
On first code, you made something wrong! Have you noticed?!
Srrazmi
(Web And App Developer)
August 1, 2019, 6:38pm
#16
asimjib93:
Have you noticed?!
Yes, After That I Declare That
Srrazmi:
If get value = close
asimjib93
(Asim Jib)
August 1, 2019, 6:39pm
#17
@bluezoneplay Use 2nd code of @Srrazmi . Hope that could help you.
Srrazmi
(Web And App Developer)
August 1, 2019, 6:41pm
#18
asimjib93:
omething wrong
Now All Is Set Check it Again
1 Like
bluezoneplay:
realtime
You know the full name of the Firebase component you are using?
“Firebase Realtime Database”
Simply use the OnDataChanged event handler to get changes in realtime.
And please remove that mess of a timer I see. It hurts me emotionally.
2 Likes
If i change value in firebase database while opening app then can notifier will dissmiss automatically without reopen app