Тёмный

Ionic 3 - Firebase Custom User Profiles 

Paul Halliday
Подписаться 36 тыс.
Просмотров 61 тыс.
50% 1

Ionic 3 - Firebase Custom User Profiles
In this video, we continue our Firebase and Ionic series with the ability to add custom user profiles to our authenticated users. If you haven't seen part one of this video, check it out here: • Ionic 3 - Firebase Ema...
Paulhalliday.io:
Learn Ionic 3 From Scratch
paulhalliday.io/p/learn-ionic...
Master Ionic 3 with Ionic Native and Cordova Integrations
www.udemy.com/master-ionic-3-...
Master App Prototyping with Adobe Experience Design (XD) www.udemy.com/master-app-prot...
Support the content with at least $1 for EXCLUSIVE early access to the next video(s), as well as other benefits! / paulhalliday
You can also support the content by keeping me caffeinated (much appreciated!): paypal.me/PWHSoftware
The extra epic content always comes via email first. Sign up so you're not left behind: eepurl.com/cBCqO9
You can also find me:
/ paulhalliday.io
/ pwhsoftware
/ paulhal

Наука

Опубликовано:

 

16 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 147   
@paulhalliday
@paulhalliday 7 лет назад
Want to put this to use in your Ionic applications? Get Learn Ionic 3 From Scratch with our real-time chat application. paulhalliday.io/p/learn-ionic-3-from-scratch Course content is still being added with more projects coming soon!
@marvellawson9999
@marvellawson9999 7 лет назад
I love your videos, tell me is it possible to create an user profile at the time of the user creation ?
@mahmoudtokura
@mahmoudtokura 7 лет назад
I bought this course, I totally recommend it to anyone looking to learn Ionic 3. I already got my first Client and they paid well, i'd say the course has already paid for itself with change. LOL My next project is for a travel agency, using a lot of APIs for Hotels, car rentals and flights, would be a tricky project but if i get stuck, i will "buzz". Keep up the good job.
@paulhalliday
@paulhalliday 7 лет назад
Mahmoud Tokura That's awesome! I'm so glad to have been part of your journey. Thanks for letting me know your progress. :)
@_.mmxxcchhi
@_.mmxxcchhi 6 лет назад
Do you have one for ionic 2?
@rachidimohamed6640
@rachidimohamed6640 6 лет назад
hi Paul Your Course is soooo great,but i didn't know how to check if the user first log in.how can i do that ?
@AmitMoryossef
@AmitMoryossef 7 лет назад
I love those firebase integration videos, keep it up!
@jeremygarcia4790
@jeremygarcia4790 7 лет назад
Just best tutorials for Ionic and firebase ! Great Job...
@JesusMurF
@JesusMurF 6 лет назад
Thanks for this fantastic tutorials Paul!
@georgecipriannedelcu1237
@georgecipriannedelcu1237 7 лет назад
Thanks a lot for your content Paul. Really apreciate it. I'm planning to buy your full content as soon as I can.
@paulhalliday
@paulhalliday 7 лет назад
+George Ciprian Nedelcu Glad you're enjoying it! :)
@georgecipriannedelcu1237
@georgecipriannedelcu1237 7 лет назад
As I said, I bought the full content of the course. I suggest to everybody is looking to create an Ionic app to do the same because it is full of interestring lessons. Thanks again Paul. Love the way you explain the best coding practices.
@MushaGH
@MushaGH 5 лет назад
I like the way you tech, easy to understand thank you so much keep up the good work.
@jackdev8064
@jackdev8064 7 лет назад
thank you very much Paul, you are the best!
@ashutoshdinesh
@ashutoshdinesh 7 лет назад
Hi Paul, can you help me? What condition do you give to check whether profile has already been created?
@SiddharthRay1
@SiddharthRay1 7 лет назад
thank you 💟
@mrmomo42
@mrmomo42 6 лет назад
THANK YOU
@brianmcgowan717
@brianmcgowan717 6 лет назад
Hi Paul, thanks for the video. My app seems to work right up until the end when the user information is displayed on the profile page. I think the problem may be related to the import of the 'FirebaseObjectObservable' on the home.ts page. Is this line outdated or have I done something wrong? Thanks for the help. Brian
@kumaresha3348
@kumaresha3348 3 года назад
Great. How to store image with custom profile into firebase db in Ionic 5.
@wijaksanapanji
@wijaksanapanji 6 лет назад
hey, i watched a lot of your ionic video, its really help me and my friends a lot, thank you so much :D but, i can't implement this custom profile tutorial with the AngularFire2 v5 :(
@elenabr92
@elenabr92 5 лет назад
Great video! However, I'm currently using ionic v4 and can't make the take operator from rxjs work. Any tips?
@monakarmi2812
@monakarmi2812 5 лет назад
okay , the way you fix the invalid pipe error is in your userprofile.ts change : profileData : AngularFireObject to profileData : Observable and this.profileData = this.afDatabase.object(`user/${data.uid}`).valueChanges();
@carljet77
@carljet77 5 лет назад
This works perfectly.
@muthuicris2030
@muthuicris2030 5 лет назад
i have tried this ,it returns no error but it displays nothing
@muthuicris2030
@muthuicris2030 5 лет назад
@@carljet77 for me the error is gone but no data is being displayed
@carljet77
@carljet77 5 лет назад
Sorry bro I dont know how I can help u. Maybe your variables doesn't work @@muthuicris2030
@GabrielMendezz
@GabrielMendezz 5 лет назад
THANK U VERYMUCH BRO!
@bettyaquino7681
@bettyaquino7681 6 лет назад
wanted a help .... I am capturing a length and length of firebasae and I want to put a marker in google maps but it does not leave me and when I put with static data if it puts marker
@junaidkhurshid381
@junaidkhurshid381 6 лет назад
Hello Paul.. I have a question , If the user has not create iits profile then the Home page will show empty data .. so what should be done to enter data in Profile incoming New Users :)..
@pillar6programming687
@pillar6programming687 7 лет назад
nice video! i have a question i was hoping you could help me with. Im making an app and using FirebaseListObservable (associated with the user) so each time i make a new message it is associated with the user who made it, and the app retrieves the users messages (each one has an id under the users id) is this a good way to do things, or should i be using FirebaseObjectObservable. Also a side question is it bad that each message has its own id? ty hoss
@VivekGawande1
@VivekGawande1 6 лет назад
What if I had to display the information on multiple pages? Do I have to query the database everytime? Or is it possible to store the data somewhere?
@juanwang4270
@juanwang4270 6 лет назад
Hi Paul, could you give us some advice on letting users to upload their profile picture? please Thanks in advance!
@ashishchaturvedi6130
@ashishchaturvedi6130 6 лет назад
Profile creation page should come only one time after first login , how can i do that???
@TunaTenno
@TunaTenno 6 лет назад
i have error Type 'FirebaseObjectObservable' is not assignable to type 'FirebaseListObservable'. this.profileData = this.afDatabase.object('profile/'+data.uid) . import { AngularFireDatabase, FirebaseListObservable } from 'angularfire2/database-deprecated';
@sarigats
@sarigats 5 лет назад
I am are trying to make an app in ionic 3. Profile page of the user is created and data is stored in the Firebase. But not able to display those information in the app. Can you help me with an example code?
@juliansingh6766
@juliansingh6766 6 лет назад
when did he import the AngulatFireAuthModule and when ?
@codeaxen
@codeaxen 6 лет назад
Hello Paul i need to display Username in my sideMenu using AppComponent.ts need some Help Here
@anonkh8120
@anonkh8120 6 лет назад
how about new user login and existing ?
@reignmina9923
@reignmina9923 6 лет назад
Hey Paul, may I know what plugin you are using to have that color scheme? It looks so pleasant! And that arrow thing when you type in "=>" is awesome too. Been a follower of your tutorials for quite a while now. Just started to learn Ionic 3 months ago and I think I'm getting the hang of it. Cheers from the Philippines!
@paulhalliday
@paulhalliday 6 лет назад
I think the theme is called One Dark Pro and the text is Fira Code if I remember rightly! :)
@profapps
@profapps 4 года назад
hi how fix problem please Firebase Permission Denied firestore ionic 4
@michaellariviere404
@michaellariviere404 6 лет назад
Additionally Paul, it would be nice if you had a github repository where the finished code exists so we can compare our code to yours should we run into mistakes.
@MuraliKrishna-fx1ev
@MuraliKrishna-fx1ev 7 лет назад
Nice video for beginners. How can we make the app check if data is available in firebase and if the data is available, skip the page asking for firstname, lastname and username? Thanks
@ajm7124
@ajm7124 6 лет назад
Hey, if you have found a way to do it, I will be very grateful to share it with us ;-)
@TheRosso84
@TheRosso84 6 лет назад
is this the same in ionic mobileApp??
@devillspdr
@devillspdr 7 лет назад
I followed angularfire docs to setup firebase and its configuration in app.modulte.ts in my ionic 3 project and it works ! But since I have 2 firebase databases for the same app and therefore 2 different configurations, setting it up in app.module is not an option. I have 2 config files (frbaseconfig.ts and frbaseconfig2.ts). How can I make it happen?
@mbahamin8848
@mbahamin8848 5 лет назад
how to make rbac with this tutorial ? thanks
@pillar6programming687
@pillar6programming687 7 лет назад
thx hoss
@sivasaikiran7224
@sivasaikiran7224 5 лет назад
How to create role-based login using ionic 3/ionic 4 and firebase ??
@adamsabdulmajid9543
@adamsabdulmajid9543 7 лет назад
hi Paul I have personal question about ionic development is there a way I could contact you please it really important.... thanks.
@5409866787
@5409866787 6 лет назад
Can't we just use the User interface created earlier instead of building a new Profile interface?
@ionwizard606
@ionwizard606 7 лет назад
Good Video. Also can you make a tutorial for getting and manipulating data from firebase?(I mean like, get data and do some calculations and update again). Using callback functions over firebase data... etc. I have seen many uses asking that kind of questions on STACKOVERFLOW. So that would be really helpful.
@kamalkamals
@kamalkamals 6 лет назад
Good tuto, one question plz, on this video u use multi emulator, so what is extension use for test multi emulator ??
@LourensMarx
@LourensMarx 6 лет назад
If you use 'ionic cordova run' on the cli it will launch the multi emulator by default.
@gaunlet10d
@gaunlet10d 6 лет назад
I'm having this error : Error: Uncaught (in promise): Error: StaticInjectorError[AngularFireDatabase]: StaticInjectorError[AngularFireDatabase]: NullInjectorError: No provider for AngularFireDatabase! Error: StaticInjectorError[AngularFireDatabase]: StaticInjectorError[AngularFireDatabase]: NullInjectorError: No provider for AngularFireDatabase! How can I fix this? This is after all the code is done, when I run it at the final of the tutorial.
@matheusjoveliano
@matheusjoveliano 6 лет назад
Hello Paul, thank you for the videos, I'm trying to log out, but I'm not trying to succeed, when I redirect to login screen, I get the following error: permission_denied at / profiles / : Client does not have permission to access the desired date. logout() { this.afAuth.auth.signOut().then(() => { this.app.getRootNav().setRoot("LoginPage"); // I'm using tabs }) }; could you help me please? thank you so much!
@profapps
@profapps 4 года назад
hi thank you so much i have this error ./src/main.ts Module not found: Error: Can't resolve 'rxjs/add/operator/take' in 'C:\Users\..
@profapps
@profapps 4 года назад
npm install --save rxjs-compat
@Gsiniguez
@Gsiniguez 6 лет назад
how i use data of database in loginpage to make only once redirect to profilepage??? for example: if(database.uid.username !=null) setroot(homepage) else setroot(profilepage). My problem is i dont know how to call data of database to use in conditional. Sorry for my english and thanks.
@ajm7124
@ajm7124 6 лет назад
Hola! The same for me, if you have found a way for doing it, I'm not against a little help. ;-)
@luislerma591
@luislerma591 5 лет назад
Hi. I have the same problem, could you please help me if you found any solution? hola. Tengo el mismo problema, por favor me podrian ayudar si encontraron alguna solucion?
@tear728
@tear728 6 лет назад
Just wondering: I read that angularFire2 does not support image uploads. How would we get around this issue?
@VivekGawande1
@VivekGawande1 6 лет назад
It does support images?
@flosrn
@flosrn 6 лет назад
Hey Paul, thanks for your incredibles videos ! Just fantastic But I'm in a bind : with the new version of AngularFire 5.0 the FireBaseObjectObservable must be replace by the AngularFireObject but when I do that I have the error : "InvalidPipeArgument: '[object Object]' for pipe 'AsyncPipe'"and when I try to remove the Async Pipe like this : Username : {{ profileData?.username }}, I have no more mistakes but nothing appears....
@heltonwylammi8150
@heltonwylammi8150 6 лет назад
Eu estou com o mesmo erro. você consegui resolver???????? I have the same error. You solved ????????
@aluisiovictor
@aluisiovictor 6 лет назад
Eu estou com o mesmo erro. você consegui resolver???????? I have the same error. You solved ????????
@surajkulthe1615
@surajkulthe1615 6 лет назад
I have got the exact error , please can anyone give solution to this problem
@MJ-bo9qw
@MJ-bo9qw 6 лет назад
Did you guys solve this issue?
@farhanazam8981
@farhanazam8981 6 лет назад
i have same problem.... anyone solved it?
@abdeljalilbenettaleb6853
@abdeljalilbenettaleb6853 6 лет назад
Hello, i get this problem can you help ?? > Type 'AngularFireObject' is not assignable to type 'FirebaseObjectObservable'.
@abdeljalilbenettaleb6853
@abdeljalilbenettaleb6853 6 лет назад
Plz
@abdeljalilbenettaleb6853
@abdeljalilbenettaleb6853 6 лет назад
import {AngularFireDatabase} from "angularfire2/database"; import {FirebaseObjectObservable} from "angularfire2/database-deprecated"; FirebaseObjectObservable is not in "angularfire2/database";
@whyneil
@whyneil 6 лет назад
Try: import { AngularFireObject } from "angularfire2/database";
@osielcastanon675
@osielcastanon675 6 лет назад
and try this: this.profileData = this.afDatabase.object('profile/'+data.uid).valueChanges();
@asassinsJC
@asassinsJC 7 лет назад
Hi. I see yours tutorials and i have can developer app advances. now i have one problem, do you can pass your email?
@JohnBiddulph
@JohnBiddulph 6 лет назад
Paul, there is a problem 10:19 InvalidPipeArgument: '[object Object]' for pipe 'AsyncPipe' Please help
@MJ-bo9qw
@MJ-bo9qw 6 лет назад
did you solve it? had the same problem
@JohnBiddulph
@JohnBiddulph 6 лет назад
Michael John Isip yeah kind of.... by using something like valueschanged()
@osielcastanon675
@osielcastanon675 6 лет назад
yes, it´s works
@M1st3rRaw
@M1st3rRaw 6 лет назад
where did you exactly use this? kind of stuck on this
@carolinechoi1836
@carolinechoi1836 6 лет назад
I tried the "valueschange();" thing and it's not showing me my data. Did it work completely for you?
@MrEstar1005
@MrEstar1005 6 лет назад
How to check whether the user has logged in for the first time?
@divyajeetsingh
@divyajeetsingh 6 лет назад
make counter in database if it is first that set as 1 otherwise increament by one this way you can solve two problem : How many times the user use your app as well as it first logged or not
@divyajeetsingh
@divyajeetsingh 6 лет назад
constructor(public platform: Platform, public statusBar: StatusBar, public splashScreen: SplashScreen, private afAuth : AngularFireAuth) { this.afAuth.authState.take(1).subscribe(auth => { if(!auth.uid){ this.rootPage = 'LoginPage' } else{this.rootPage = 'HomePage' } }) } // import {AngularFireAuth} from 'angularfire2/auth';
@michaellariviere404
@michaellariviere404 6 лет назад
After following this, I get the error: "Typescript Error Module '"Documents/sites/Profile/node_modules/angularfire2/database/index"' has no exported member 'FirebaseObjectObservable'." The error is on this line in home.ts: import { AngularFireDatabase, FirebaseObjectObservable } from 'angularfire2/database';
@gonzaloorellanatech
@gonzaloorellanatech 6 лет назад
it's solved?? i need help with that to... regards
@luisramirezgutierrez7105
@luisramirezgutierrez7105 5 лет назад
alguien pudo solucionar este error? por favor ayuda
@mastertric
@mastertric 6 лет назад
How do I make each user have a profile picture? thank
@paulhalliday
@paulhalliday 6 лет назад
Check out my Firebase image upload video for more info! :)
@mastertric
@mastertric 6 лет назад
thank you man, you are great!
@harishreddy4133
@harishreddy4133 6 лет назад
Data not showing in the final page though showimg in the console
@hadrieeriee3593
@hadrieeriee3593 6 лет назад
I have the same issues. Please anyone know how to solve this.
@MrSunni10
@MrSunni10 5 лет назад
Hi Paul, it seems like this function is not working for me. When I click on the create profile, it's doing nothing. It did not take me to the Homepage and did not create any entry in the firebase database. What am I missing here. Thanks a lot. createProfile() { this.afAuth.authState.take(1).subscribe(auth => { this.afDatabase.list('profile/${auth.uid}').push(this.profile).then(() => this.navCtrl.push(HomePage)); })
@Bora34365
@Bora34365 5 лет назад
this.afDatabase.list(`profile/${auth.uid}`).push(this.profile).then(() => this.navCtrl.push(HomePage));
@sobujkhan1358
@sobujkhan1358 5 лет назад
Wow
@marwansalem76
@marwansalem76 6 лет назад
please update to angularfire2 v5 thanks!
@paulhalliday
@paulhalliday 6 лет назад
Working on it! :)
@marwansalem76
@marwansalem76 6 лет назад
thank you!
@marwansalem76
@marwansalem76 6 лет назад
when it will be ready?
@RootsterAnon
@RootsterAnon 6 лет назад
is it there yet?
@taimteam2678
@taimteam2678 7 лет назад
hello paul, got and error at profile.ts ('profile/${auth.uid}')) while running App, Error: "Reference.child Failed: first argument was an invalid path..."
@LourensMarx
@LourensMarx 7 лет назад
Hi Taim, If I can assist. Note that in order to use this ('profile/${auth.uid}')) method of data binding you cannot use single quotes. You have to use the backtick character. This is the character that's typically on a US layout keyboard below the tilde (~).
@Daniel89hurt
@Daniel89hurt 6 лет назад
No help... tengo el mismo problema y he tratado con todo tipo de comilla
@Mierusama
@Mierusama 6 лет назад
Where you using auth.uid? auth, can't be referencied without 'this.' outside of constructor
@yasminlukman
@yasminlukman 5 лет назад
can you please put the code in github, thanks before
@michaellariviere404
@michaellariviere404 6 лет назад
This is a problem with this line: Username: {{(profileData | async)?.username}} results in this: Error: InvalidPipeArgument: '[object Object]' for pipe 'AsyncPipe'
@dianabanana3596
@dianabanana3596 6 лет назад
I get the same error
@cali7162
@cali7162 6 лет назад
I have the same error atm because I've done an import of AngularFireObject, did you find the solution ? Regards
@flosrn
@flosrn 6 лет назад
Same problem for me, did you find the solution ? thank you
@dibyajyoti_ghosal
@dibyajyoti_ghosal 6 лет назад
Same error,any fix??
@mahaomolise5359
@mahaomolise5359 7 лет назад
how can we do this with php and mysql instead of firebase?
@paulhalliday
@paulhalliday 7 лет назад
Here's the first video in this section: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-aNW444SpFNs.html
@dibyajyoti_ghosal
@dibyajyoti_ghosal 6 лет назад
InvalidPipeArgument: 'function observeOnOperatorFunction(source) { return source.lift(new ObserveOnOperator(scheduler, delay)); }' for pipe 'AsyncPipe'| Please fix this mr.hurrying train!
@Bora34365
@Bora34365 5 лет назад
this.profileData = this.afDatabase.object(`profile/${data.uid}`).valueChanges();
@renemayett5161
@renemayett5161 5 лет назад
BROOOO
@joshfoster9785
@joshfoster9785 5 лет назад
Did anybody work out why the account page returns Error: PERMISSION_DENIED: Permission denied when you use the back accent in this.afDatabase.list(`profile/${auth.uid}`).push(this.profile) i use ' ' around the auth.uid and it returns polyfills.js:3 Unhandled Promise rejection: Reference.child failed: First argument was an invalid path = "profile/${auth.uid}". Paths must be non-empty strings and can't contain ".", "#", "$", "[", or "]" ; Zone: ; good tutorial till the account part a git resource would be quite helpful for learning
@Bora34365
@Bora34365 5 лет назад
ples check realtime database permission rules ; "rules": { ".read": true, ".write": true }
@yiinsskibare5526
@yiinsskibare5526 5 лет назад
I don't see that : service cloud.firestore { match /databases/{database}/documents { match /{document=**} { allow read, write: if true; } } }
@renemayett5161
@renemayett5161 5 лет назад
@@yiinsskibare5526 try to copy this: service cloud.firestore { match /databases/{database}/documents { match /{document=**} { allow read: if true; allow write: if true; } } } Hope it helps
@BrynnerFerreira
@BrynnerFerreira 6 лет назад
This will solve the issue on 10:26 - stackoverflow.com/questions/48032291/property-query-is-missing-in-type-observable-ionic-firebase?rq=1
@WeltonDemetrio
@WeltonDemetrio 6 лет назад
Hello! This is a great video but I'm having problems with the Profile page. My code is exactly like yours but when I try to create the profile i get: Runtime Error: Uncaught (in promise): Error: Reference.child failed: First argument was an invalid path = 'profile/${auth.uid}'/ Paths must be non-empty strings and can't contain ".", "#", "$", "[", or "]" validatePathString@localhost:8100/build/vendor.js:35668:31 ==== JUST FOR REFERENCE, HERE IS MY CODE FOR THE PROFILE.TS ==== import { Profile } from '../../models/profile'; import { AngularFireAuth } from 'angularfire2/auth'; import { AngularFireDatabase } from 'angularfire2/database'; import { Component } from '@angular/core'; import { IonicPage, NavController, NavParams } from 'ionic-angular'; @IonicPage() @Component({ selector: 'page-profile', templateUrl: 'profile.html', }) export class ProfilePage { profile = {} as Profile; constructor(private afAuth: AngularFireAuth, private afDatabase: AngularFireDatabase, public navCtrl: NavController, public navParams: NavParams) { } ionViewWillLoad() { this.afAuth.authState.subscribe(data => console.log(data.uid)); } createProfile() { this.afAuth.authState.take(1).subscribe(auth => { this.afDatabase.object("profile/${auth.uid}").set(this.profile) .then(() => this.navCtrl.setRoot('MainPage')); }) } } Help please!!!
@sirthails3505
@sirthails3505 6 лет назад
try with ` and not " (in the path)
@WeltonDemetrio
@WeltonDemetrio 6 лет назад
Thails SirGugul hey! Thank you sooo much!
@13mycL8
@13mycL8 6 лет назад
This tutorial is doing well until you arrive at ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-uESqBwFVf1Q.html which is the most important thing in this tutorial, and that moment you'll know, You fucked up! LOL
@Nurundin
@Nurundin 6 лет назад
Hi Paul, can you help me? What condition do you give to check whether profile has already been created?
@VivekGawande1
@VivekGawande1 6 лет назад
What if I had to display the information on multiple pages? Do I have to query the database everytime? Or is it possible to store the data somewhere?
Далее
Ionic 3 - Firebase Email Login/Authentication
16:12
Просмотров 108 тыс.
меня не было 9 дней
12:48
Просмотров 2,2 млн
Lady Plays Hide and Seek with Her Dog
00:23
Просмотров 6 млн
Google Data Center 360° Tour
8:29
Просмотров 5 млн
Ionic 3 - Lazy Loading Components
11:36
Просмотров 33 тыс.
Ionic 3: Google Maps SDK
10:45
Просмотров 37 тыс.
Difference between cookies, session and tokens
11:53
Просмотров 600 тыс.
Custom Ionic Splash + Animation
5:29
Просмотров 175 тыс.
iPhone socket cleaning #Fixit
0:30
Просмотров 12 млн
Телефон-електрошокер
0:43
Просмотров 79 тыс.
Игровой Комп с Авито за 4500р
1:00