You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 17, 2022. It is now read-only.
I have a club membership. I HAVE SENT 5 MAILS REGARDING THIS ISSUE I'M FACING, but no one responds to me. We are working on a real time database and struck in-Between. I am waiting for your response ASAP.
NO DATA IS WRITTEN TO REALTIME DATABASE.
Below is the code
function initDatabase(): void {
DB.init();
var myRef: DBReference = DB.getReference("users");
myRef.setValue("Hello, World!");
myRef.addEventListener(DBEvents.VALUE_CHANGED, onDataChange);
myRef.addEventListener(DBEvents.VALUE_CHANGE_FAILED, onCancelled);
}
function onDataChange(e:DBEvents):void
{
trace("e.dataSnapshot ?"+e.dataSnapshot.exists)
if (e.dataSnapshot.exists)
{
if (e.dataSnapshot.value is String) trace ("onValueChanged String value = " + e.dataSnapshot.value);
else if (e.dataSnapshot.value is Number) trace ("onValueChanged Number value = " + e.dataSnapshot.value);
else if (e.dataSnapshot.value is Boolean) trace ("onValueChanged Boolean value = " + e.dataSnapshot.value);
else if (e.dataSnapshot.value is Array) trace ("onValueChanged Array value = " + JSON.stringify(e.dataSnapshot.value));
else trace ("onValueChanged Object value = " + JSON.stringify(e.dataSnapshot.value));
}
}
function onCancelled(e:DBEvents):void
{
trace ("Failed to read value: " + e.msg);
}
I have a club membership. I HAVE SENT 5 MAILS REGARDING THIS ISSUE I'M FACING, but no one responds to me. We are working on a real time database and struck in-Between. I am waiting for your response ASAP.
NO DATA IS WRITTEN TO REALTIME DATABASE.
Below is the code