He is trying to call users Google profile image, when user login with Google.
Ok, he is calling the data when screen initialize, but getting the data after the screen must have opened, he have to get data before storing it.
Hi @The_K_Studio and @themaayur
you are storing image in tinydb and you can only store value like text,number,boolean in tinydb.
I know about it.
I would like to tell you, when user login with google using firebase authentication, then the “get profile picture” value is not a image, actually it is url of the user image.
And we can store url in tiny db as it is a text.
I know that thanks
Ok I will try this one.
Btw after authentication is successful it does not directly goes to another screen, when a row is created in airtable after authentication Sucessful then another screen is opened.
So I stored the value in variable and then used it as a start value to pass vale to another screen.
Use open another screen with start value block in when login success.
And Change start value by making a list and select name, email, image.
I have done the same here.
I mean when login success.
Like this
But when login sucess I am storing the name and email value in airtable. After then open another screen.
You can also do it when login success.
Do like this.
When screen initialize
First store value
Then open another screen
This will store value as well as open another screen.
Or
You can also store value from home screen by getting start value.
Tried this one then also showing same error.
When I was storing value in tindydb atleast it was showing the error.
Do you have any existing projects which uses firebase authentication.
Yes i have one working project, i have done same as i explained and working fine.
Here are my blocks
Then I can’t understand why it’s not working in mine
Pm your sample aia, i will check whats wrong with this.
To know if you are really getting data you should put the values in a label to see if you receive the data…
But why do you store that data in TinyDB? To use it offline? Because if you do it online, you don’t need to. FirebaseAuth has a block to get the current user who is logged in. When you start any other screen (if you are already logged in) you just have to get the current user:
And there you use the profile picture
Hey maayur
This same problem happened with me some day ago.
And I got solution on it.
You have to remove list block witch you currently using,
And select simple list select blocks
Try this remove block and run app then see no error will come
Same blocks are present in one of my app, it is live on play store, and it is working fine with me.
Yes, I am getting the values like name and email as it is used in sutitle in main screen but there’s problem with profile image.
Thanks for your solution I will try that and check whether it works.