Managing leaderboard in unity with firebase
<p>I want to save player score into firebase database I write this code and make a post request in JSON format it neither priting error nor adding data into server . each time www.text brings brings unique response like this</p>

<blockquote>
  <p>{"name":"-KQ-0awfeGNuapdD-5AR"}</p>
</blockquote>

<p>what i am doing wrong. how can i post user score on firebase database. Remeber i didn't make any key on database. I just allow anonymous to enter data in DB</p>

<pre><code>        //Firbase Database URL
        string url = "https://xyz.firebaseio.com/.json";
        WWWForm objForm = new WWWForm();

        //Adding Data
        objForm.AddField("playerName", name);
        objForm.AddField("score", score);
        objForm.AddField("scoreDate", DateTime.Now.ToString());

        //Making Header
        Dictionary&lt;string, string&gt; objDict = new Dictionary&lt;string, string&gt;();
        objDict.Add("Content-Type", "application/json");

        //Converting FormData into JSON-- necessary for firebase post
        string jsonConvertedForm = JsonUtility.ToJson(objForm);

        byte[] bytePostData = Encoding.UTF8.GetBytes(jsonConvertedForm);
        WWW www = new WWW(url, bytePostData, objDict);
        yield return www;

        if (www.error == null)
        {
            Debug.Log("Adedd ::" + www.text );

        }
        else
        {
            Debug.LogError("Error ::" + www.error);
        }
</code></pre>