I want to create an app where users can open it and without using any type of login, select come parameters like language or city that will be used along all the app. What is the best way to do this? I’m currently using the SING UP method on the first screen if there is no user already created. Any advise?
Hey @jules.newton,
There are two ways to handle this cleanly.
1- If you want no login, create a (Session) collection with your Language and City fields. On your first screen, use a Form or action to create one Session record. Every screen references that record through a relationship or a “current Session” filter. It’s a light method and works well for simple preference flows.
2- If you think you’ll ever need to save user data down the road, go with auto-created users instead. On the home screen, create a user with a generated email and random password, the user never sees it. Store Language and City on the User record as normal. it gives you the full control of your app’s database without any visible login screen. This is what I use on most of my marketplace and booking apps.
The second approach scales better as your app grows.
What kind of app are you building? Happy to point you toward the right structure for your specific use case.
Ali Bazzi — Adalo Expert | adalo.com/experts/ali-bazzi
Hi! Thanks for the advice. How do I access the one record. I know how to create the table and the record using a form, but in a latter screen how can I refer to that only record? I won’t have a username or id to filter from, neither can I count to one record. Also, if there are other users using the app, won’t they access the same record?
Thanks for your time.
The way to reference that single Session record on later screens is through the action that created it.
When you create the Session record on your first screen, add a “Link” action right after the “Create Session” action. The app will pass the (Current session) record to the next screen. From that point, every screen in the flow receives the (Current session) record and can reference it directly as “Current Session”.
As for your second concern, yes, if multiple users use the app, they will each create their own session record and each navigate with their own record passed through. They won’t share records as long as each user creates their own on the first screen and navigates with it.
Every subsequent screen references it as current session without any filtering needed.
Let me know if you get stuck on the navigation setup.
Ali Bazzi — Adalo Expert | adalo.com/experts/ali-bazzi
Got it, thanks. I will try this.
Regards
Julio
Glad it helped Julio! Let me know how it goes.
Ali Bazzi — Adalo Expert | adalo.com/experts/ali-bazzi