The question says it all.
How do I make an app that works fully offline, with no login and no server?
1 answer
Chosen as the best answer
Keep all the data on the phone in a local database, make every screen work with the internet off, let people export a backup file they keep themselves, and use Google Play Billing to restore purchases instead of making your own accounts. No server means nothing to pay for every month, nothing to go down at night and nothing to leak.
We build our apps this way. Most of it comes down to a few decisions at the start.
The phone is the main copy
Store everything in a local database. In Flutter that is usually SQLite through
driftorsqflite; in native Android, Room. Design it as if there is no other copy, because there isn't.Give every record a stable id (a UUID), not just a running number. It makes importing and merging much easier later. And plan database migrations from the first version, because people skip updates and jump several versions at once.
Test it in airplane mode
Turn on airplane mode and use your app for a whole day. Anything that keeps loading forever is a bug. If one feature really needs the internet, like a currency rate, keep the last value and show how old it is.
Backups people own
With no server, losing the phone means losing everything, unless you help. Add an export to a file (JSON or a zipped database) they can save to Drive, email or a computer, and an import that still reads older export files. Android's Auto Backup can also copy app data to the user's own Google account; check what it includes and exclude anything that should never leave the phone. A gentle reminder after the first month of use helps.
Paid features without accounts
You don't need your own login to sell an upgrade. Google Play Billing ties the purchase to the person's Google account. When the app opens, or when they tap "Restore purchases", ask Play for their existing purchases and unlock what they own. A new phone with the same Google account gets it all back. Acknowledge each purchase properly, because Google refunds unacknowledged purchases after three days.
Private data
If the app holds anything personal, add an app lock with the phone's fingerprint or a PIN, and keep secrets in the Android Keystore, not in plain files.
Your privacy policy also gets very short, because nothing leaves the phone unless the person sends it.
Your answer
Know the answer? Sign in and share it. Useful answers earn points.
Sign in to answer