Saving Data on Android



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

Create 
database
 button. The security rules dialog will open:
Saving Data on Android
Chapter 12: Introduction to Firebase Realtime Database
raywenderlich.com
207


Select the second option, 
Start in test mode
, and click the 
Enable
 button. You'll 
learn more about security rules in a bit.
Once your database is created you'll get this:
To add the Realtime Database service to your app, you only need to add one more 
dependency.  Open up 
build.gradle
 file, if you haven't got it open and add the 
following dependency, making sure you're using the latest version:
implementation 'com.google.firebase:firebase-database:
16.1
.
0
'
Database rules
In this section, you'll be working on 
WhatsUp
 app which has an authentication 
feature so the app can know who your users are. 
Authentication
 is the process of 
verifying users are who they say they are, and to give them certain security access to 
your service.
User identity is an important security concept. Different users have different data 
and different capabilities. In this app, the user will be able to delete posts it created 
but not the other people's posts. Because of this, you need a way to control who has 
access to what data in your database. The process of determining who has access to 
what is called 
authorization
.
To implement the various aspects of security, authentication and authorization 
would require a lot of work. Firebase has the Authentication service which can use 
for all those sides of security, and the Realtime Database service uses internal 

Download 19,28 Mb.

Do'stlaringiz bilan baham:
1   ...   211   212   213   214   215   216   217   218   ...   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