in an Android app I have the following:
notebookRef = FirebaseFirestore.getInstance().collection("Registros");
notebookRef.add(new Lista(title, description, geoPoint, null));
Map<String, Object> value = new HashMap<>();
value.put("timestamp", ServerValue.TIMESTAMP);
notebookRef.add(value);
it go mad because instead of generating a timestamp it write the following in the firebase:
the server should generate its own timestamp: see here and here
what am I doing wrong?