My app is sending roughly 5mb a day, where as my calculations of what it should be were closer to less than 100kb. So somewhere something is going very wrong or I am misunderstanding something. Is there any way to log the size of the firebase data going in and out as it happens? Otherwise, any other debugging ideas?
Every 2 mins this 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 the data typically looks like:
"Locations":{
[groupName]:{
[user]:{
lat: "175.48598907719583",
lng: "-37.99470968516994",
time: "1454707169089"
},
},
}