Calendar calendar = Calendar.getInstance(); @SuppressLint("SimpleDateFormat") SimpleDateFormat currDate = new SimpleDateFormat("dd-MM-yy"); String date = currDate.format(calendar.getTime()); Calendar calforTime = Calendar.getInstance(); @SuppressLint("SimpleDateFormat") SimpleDateFormat currTime = new SimpleDateFormat("hh-mm"); String time = currTime.format(calforTime.getTime());
UserData userData = new UserData(name, downloadUrl, date, time, unqKey, email, contact);
reference.child(unqKey).setValue(userData).addOnSuccessListener(unused -> { Toast.makeText(USERLANDING.this, "data uploaded", Toast.LENGTH_SHORT).show(); }).addOnFailureListener(e -> { Toast.makeText(USERLANDING.this, "something Upload data went wrong", Toast.LENGTH_SHORT).show(); }); } [/code] И правила моей базы данных на базе огня: { "rules": { ".read": true, " .write": true }
Я хочу знать причину отсутствия обновления моих пользовательских данных в моей базе данных реального времени