I am looking to create an app that stores contacts such as a name and number. I would like it to be able to select a specific contact, and display the number associated with that contact. While being stored persistently. I am pretty new to Thunkable, and I was hoping for some help! SOS
Have you tried Firebase, AirTable, or Local DB?
I am not even sure what that is tbh. This is for a class, and it is my first experience with coding. Im a business major lol so im lost…
I wouldn’t learn firebase first. It’s awesome, but you’re going to be happier with Google Sheets or Airtable as a first learning attempt, because they’re spreadsheet-like, and as a business major, you probably are pretty comfortable with spreadsheets!
What have you done so far? Where are you stuck?
Well persistent storage is completely confusing to me…
Persistent just means that it’ll still be there when you restart the app. App variables and localDB are NOT persistent - any changes you make to them are gone when you restart the app. All your other options (i.e. Google Sheets) are persistent.
OK, great start! The only problem is that you’re storing in a localDB, which isn’t persistent. Do this: Create a new data source (look for the + button under datasources), and this time, pick a Google Sheet. (You’ll need to log into Google SHeets and make a blank spreadsheet to link to Thunkable first.)
Then you can do /exactly/ the same operation, but using that Google Sheet instead. And you’ll see your Thunkable changes show up in the Google Sheet.
The Local Storage in the Data Sources option is also persistent so it can be selected.
What do you suggest be done?
Right, but isnt local persistent?
Muneer says yes, BUT, if you’re repeatedly testing in Thunkable Live, I don’t think it behaves like it is persistent.
But, if it’s persistent enough for you, what else do you want your app to do? What does it not do now that you want?
I believe I need something to select the contact from a list, i am unsure how to do that.
A good first step would be displaying the list. Take a look at the documentation for the Dataviewer block.
The Local Storage is persistent, the Local DB isn’t. This creates a confusion but I’m very sure of it.
There is one draw back though, Local Storage is limited to your mobile device only and whatever you enter will not reflect in other devices.
Ah, yes, Muneer - I read your message too quickly and thought you were talking about localDB. Thanks for clarifying.
I do think Google Sheets is going to be easier for the original poster to implement. He’s likely to have multiple contacts in the app he’s building, and the Google Sheets approach is likely to be more intuitive than stored variables, if the goal is very basic app functionality for a class assignment.