Category : firebase

I managed to read the firebase data into the edit text. the password is showing it as null and I don’t know why. The fragment Code: preferenceManager = new PreferenceManager(getApplicationContext()); EditText newName = findViewById(R.id.newName); newName.setText(String.format( "%s ", preferenceManager.getString(Constants.KEY_NAME) )); EditText newEmail = findViewById(R.id.newEmail); newEmail.setText(String.format( "%s ", preferenceManager.getString(Constants.KEY_EMAIL) )); EditText newPassword = findViewById(R.id.newPasword); newPassword.setText(String.format( "%s ", ..

Read more

private void updateToken(FirebaseUser firebaseUser) { DatabaseReference tokens = FirebaseDatabase.getInstance().getReference(Common.TOKENS); //Get Token FirebaseInstanceId.getInstance().getInstanceId().addOnSuccessListener(new OnSuccessListener<InstanceIdResult>() { @Override public void onSuccess(InstanceIdResult instanceIdResult) { tokens.child(firebaseUser.getUid()).setValue(instanceIdResult.getToken()); } }).addOnFailureListener(new OnFailureListener() { @Override public void onFailure(@NonNull Exception e) { Toast.makeText(MainActivity.this, ""+e.getMessage(), Toast.LENGTH_SHORT).show(); } }); } Source: Android Studio..

Read more

lastly I’m struggling with Android Crashes from firebase. We are using unity latest version: Firebase App (v7.1.0) Firebase Auth (v7.1.0) Firebase Crashlytics (v7.1.0) Firebase Remote Config (v7.1.0) Google Analytics for Firebase (v7.1.0). We initialize it with the options: Application = firebaseOptions != null ? FirebaseApp.Create(firebaseOptions) : FirebaseApp.DefaultInstance; Normally the game is working correctly, firebase implementation ..

Read more

Is it possible to query and update same node at a time? Am write query to find node and in that same query if node is available tring to remove same node, while in this process node is removing,but again creates same node with previous value. val query: Query = firebaseDatabase.reference.child("members").orderByChild("resetKey") .equalTo(uniqueKey) query.addListenerForSingleValueEvent(object : ValueEventListener ..

Read more