Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49230

Get user name of author from firebase

$
0
0

@aligassan wrote:

hi , l am try to build simple app database connection with firebase . l used authentication email and password for access to my app and he is working fine . And when l post in database he is working fine either . l am tired to find way to show the user name or the email address for who post in database , but unfortunately no way . there is any way to to show the user name or email address for anyone who post in databases ?

l try this code for showing email address but l got the same email only !

ionViewDidLoad() {

  this.fire.authState.subscribe(data =>{
    console.log(data)
    if (data.email && data.uid){
      this.adderss = data.email
    }else{

    }
    
    })

 }

Capture

my real time databases

1

any solution please with simple code ?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49230

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>