I make an app for user data manage system.
When any user try to register with my app. User fill the all field and sign up.
I use device tool component to get mobile imei/serial number and mobile number.
To verify the new user already registered with same device/data in firebase realtime database or not.
I use Firebase Authentication V.3.0 by mirxtrem_apps for registration. When user click sign up button the checking process start.
The processing is:
1st Get Device Imei Number and Mobile Number from your side.
2nd Check Device Imei Number and Mobile Number in realtime database.
Check Registered-Device Node:
if new data is same as already store data then alert message device already registered.
Else store device imei number and mobile number is Registered-Device Node and other info on Users Node.
I need Firebase Realtime Database Security Rules for this method.
I try these Rules. But no data save on firebase database.
".read":"auth.uid !== null && $uid === auth.uid",
".write": "auth.uid !== null && $uid === auth.uid"