java - Measure Firebase bandwidth in Android -
my app sending 5mb day, calculations of should closer less 100kb. somewhere going wrong or misunderstanding something. there way log size of firebase data going in , out happens? otherwise, other debugging ideas?
every 2 mins fires:
long nowmili = now.gettimeinmillis(); double lat = location.getlatitude(); double lng = location.getlongitude(); map<string, string> locationrec = new hashmap<>(); locationrec.put("time", string.valueof(nowmili)); locationrec.put("lat", string.valueof(lat)); locationrec.put("lng", string.valueof(lng)); firebase locationrecref = new firebase(fb.fbref + "/locator/" + user.currentgroup + "/" + fb.uid); locationrecref.setvalue(locationrec);
what data typically looks like:
"locations":{ [groupname]:{ [user]:{ lat: "175.48598907719583", lng: "-37.99470968516994", time: "1454707169089" }, }, }
Comments
Post a Comment