0

Is it possible to make userName unique in this database structure of Firebase android ,if yes then please help me. Thanks in advance.

enter image description here

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
Rishabh Mahatha
  • 1,251
  • 9
  • 19
  • you could make username key instead those generated keys. – JoKr Jan 20 '17 at 11:15
  • 1
    This was already asked: http://stackoverflow.com/questions/35243492/firebase-android-make-username-unique – daPhantom Jan 20 '17 at 11:16
  • No i need this key and i need two unique key mobile number and email address. – Rishabh Mahatha Jan 20 '17 at 11:16
  • I already visited those links @dePhantom but it won't help me.:( – Rishabh Mahatha Jan 20 '17 at 11:17
  • The linked question contains links to other questions also covering the topic. At the very least those answer should allow you to get started on ensuring the uniqueness of those values. If you get stuck somewhere, post a question with the [minimal code (JSON+security rules+Android code, all as text, no screenshots please) of where you are stuck](http://stackoverflow.com/help/mcve). – Frank van Puffelen Jan 20 '17 at 15:46

0 Answers0