User Defining Firebase Storage Load

I implemented Firebase Storagein which users can upload some images to Firebase Storage. I do not want to implement the user authentication function in the application Android.

But I want to combine images uploaded by a specific user. I mean, without a username, I want to determine that these images were downloaded by a specific user or device.

So, how can I group files with some kind of identifier from the phone so that I can then classify it. Is there some kind of unique identifier for each user Firebaseor any identifier that I can place as metadata from uploaded images?

+4
source share
2 answers

You can implement Firebase Authentication Anonymous auth, which according to Firebase

Use Firebase features that require authentication without requiring users to log in first by creating temporary anonymous accounts. If the user later wants to register, you can upgrade the anonymous account to a regular account so that the user can continue to work where they left off.

This should give you a unique download User UIDfor each anonymous account, see the farthest right column below the "User Auth" picture.

Edit:

Looks like I missed the second half of your question.

image_upload JSON " ", User UID URL- Storage Location. . , .

User Auth enter image description here

enter image description here

+3

, firebase . , .

, , , , :)

+1

Source: https://habr.com/ru/post/1670786/


All Articles