The Taller (Workshop) section gives La Casa del Bordadito a lightweight event-promotion channel built directly into the app. A single, always-current flyer image is stored in Firebase Storage and its download URL is kept in Firebase Realtime Database. Every customer sees the latest flyer the moment an admin publishes it, and a OneSignal broadcast notification announces the update to everyone — no app update required.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/AndresLopezCorrales/La-casa-del-bordadito/llms.txt
Use this file to discover all available pages before exploring further.
Accessing the Taller screen
TallerActivity can be reached from two entry points in the main navigation:
- The Taller item in the bottom navigation bar.
- The “Ver flyer” button on the Talleres Presenciales slide inside the home-screen
ViewPager2banner.
Flyer display
WhenTallerActivity opens, it attaches a ValueEventListener to TallerInfo/flyerUrl in Firebase Realtime Database. As soon as the URL is available, Glide loads the image into the full-screen ImageView (ivFlyerTaller), showing a placeholder icon while the download is in progress:
Firebase Realtime Database structure
flyerUrl value is a Firebase Storage download URL. The storage path used is always flyerTaller/flyer_actual, so each upload overwrites the previous file and keeps storage usage minimal.
Admin: changing the flyer
The FAB to change the flyer (
fabCambiarFlyer) is only visible when esAdmin = true for the currently signed-in user. The flag is read from Usuarios/{uid}/esAdmin in Realtime Database during checkUserRole() on activity start. Non-admin users see a read-only view with no FAB.PopupMenu offers two upload sources:
Cámara
Requests camera (and, on Android 12 and below, storage write) permissions. Captures a new photo, saves it to
MediaStore, and uploads it to Firebase Storage.Galería
Opens the device gallery via
Intent.ACTION_PICK. The selected image is uploaded directly to Firebase Storage without saving a local copy.Update sequence
Upload to Storage
The image file is written to the
flyerTaller/flyer_actual path in Firebase Storage. A progress dialog is shown while the upload is in progress.Update Realtime Database
On upload success, the Storage download URL is written to
TallerInfo/flyerUrl in Realtime Database, replacing the previous URL.TallerActivity to see the new flyer.