Saving Data on Android



Download 19,28 Mb.
Pdf ko'rish
bet216/292
Sana24.01.2022
Hajmi19,28 Mb.
#407089
1   ...   212   213   214   215   216   217   218   219   ...   292
Bog'liq
Bailey J., Dominguez A., Djermanovic D. - Saving Data on Android (1st Edition) - 2019

Realtime Database Rules
 for authorization. Database rules allow you to control 
access for each user. They determine who has read and write access to your database,
Saving Data on Android
Chapter 12: Introduction to Firebase Realtime Database
raywenderlich.com
208


how your data is structured, and what indexes exist. Every time reading or writing is 
attempted, a request will only be completed if your rules allow it.
Firebase Database rules are also a 
JSON object
 which must have a top-level 
rules
 
node. By default, the rules node contains two primitives, 
.read
 and 
.write
 and they 
determine who has read and write access. If 
.read
 and 
.write
 are set to 
true

everyone would have complete access to your data, so they can both read and write 
as they want. To protect your database from the abuse, you need to customize those 
rules.
The Firebase Database Rules include built-in variables and functions that allow you 
to refer to other paths, server-side timestamps, authentication information, and 
much more. For this app, you'll write a rule that grants read and write access only for 
authenticated users.
This is what this rule looks like:

  
"rules"
: { 
    
".read"

"auth != null"

    
".write"

"auth != null"
 
  } 
}
Navigate to the 

Download 19,28 Mb.

Do'stlaringiz bilan baham:
1   ...   212   213   214   215   216   217   218   219   ...   292




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish