QuickTools
Banner for: Make an App, Special: Will an AI-Built App Lose Your Data? Add a Backup Button
Apps21 Nov 20262 min read

Make an App, Special: Will an AI-Built App Lose Your Data? Add a Backup Button

AI-built apps keep data on your device, so it can vanish. Ask Gemini for backup and restore buttons in the same prompt, free and with no coding.

9M4ckBy 9M4ck · Beginner

An app the AI builds for you keeps its data on your device. If you clear the browser data or change devices, the data is gone.

The easy fix: tell the AI in the prompt to add backup and restore buttons from the start. It is just Gemini on the web (free). I do not write a single line of code.

Screenshot of the app in this guide: Calorie app before the backup button
Calorie app before the backup button
Screenshot of the app in this guide: Calorie app with data
Calorie app with data

What this app can do

There are only 3 things to do

  1. Open gemini.google.com, press the + button and choose Canvas
  2. Copy the prompt below (it already has the backup and restore line), paste it and send it. Wait about 1 minute
  3. Press Preview and it is ready to use

The calorie numbers in the clip and in the app are sample data. AI can write wrong code. Try backup and restore with a few small entries first before you rely on it.

The prompt

Please build a daily food calorie counter app, as a single-file web page that works on iPhone.
- Set a daily calorie goal (default 1,800) and show a big progress ring with how many calories I have eaten and how many are left
- A list of 12 sample Thai foods with calories, such as khao man gai, pad kra pao, som tam, tom yum goong, and banana
- Tap a food to add it to a meal. I can choose breakfast, lunch, dinner or snack
- I can add my own food by typing a name and its calories
- If I go over the goal, the ring turns orange and shows a warning message
- I can delete an entry I added by mistake, and the data is saved on the device so it is still there after closing and reopening
- Thai language, large text, easy to read, soft colors
- A "Backup" button that downloads the food list and the goal as a file, and a "Restore" button that loads that file back into the app
Made with AI. The app code, the video and the voice-over for this episode were made with AI tools.
9M4ck

About the author

Hi, I'm 9M4ck, a dad who loves trying new tech, especially AI that you can talk to in plain words and that builds something useful. I don't write code myself. I started Jubmue AI (จับมือ AI) because friends kept asking me to walk them through the things I made at home, like the family TV setup.

The photos and screenshots here are from my own TV, phone and projects. The videos and voice-overs on my Facebook page are made with AI tools. This blog adapts the written steps from my posts, so you can follow along at your own pace.

Follow along: Facebook · YouTube · TikTok

Keep reading