Not able to tag different user login to save user profile's data

@crispbytes

Please try this example:

userProfilesBlank.aia (19.1 KB)

You will need to add your Firebase project APIKey, Firebase Project Url (with a / at the end) and Firebase Storage Project ID, in the variables provided.

The example will then allow you to:

  • SignUp a user with Firebase Authentication (email/password) and add profile information to the Firebase Realtime Database, with images (selected from Shared Storage) uploaded to Firebase Storage
  • SignIn a user, using Firebase Authentication (email/password)
  • View, Edit and Update User Profile Information using Firebase Authentication, Firebase Storage and Realtime Database
  • Profile Data for each user is stored under their UID, created when they sign up.
  • SignOut a user in the app (the user does remain signed into Firebase, until their 1 hour token expires, but as the developer you need to prevent any actions to the Firebase data, just as by signing in gives access to the profile)
  • No secure rules used on the realtime database data or on the Storage files

The example uses only the Firebase REST API and the web component(s)

The blocks are laid out in three columns to "mirror" the three above processes.

It is quite complex, with much back and forth between the app and Firebase, but on wifi (and with suitably sized images) the actions happen in a matter of / less than seconds.

I trust this is what you were after, and can apply it to your work

1 Like