Mhonn YbañezSRE, DevOps, AI Engineer
 Today I Learned
Read the full page

How do mobile apps keep track of me when I never created an account?

Posted
Tags
mobile, architecture, system-design

An app with no sign-in makes its own guest ID and ties server data to it, then saves that ID somewhere that can survive a reinstall or a new phone. The App Store and Google Play track purchases against my store account, not that ID, so the developer has to link the two. Underneath, it is the same client-server model as the web.

I am looking at ways to run AI locally on a phone for a project, and I am worried that the compute and the model won't fit on a typical device. That sent me back to basics: what really happens on the phone, and what needs a server? I started with a smaller question I had never thought about. How does an app remember me when I never signed in?

The question I had

How does a mobile app keep track of a user, and their purchases, without an account? And where does the work actually happen, on the phone or in the cloud?

What I found

The short version

The app makes up a random ID (a UUID) the first time it opens, saves it on the phone, and sends it to the server. The server creates a record for that ID. That ID is the "guest account". Nobody at Apple or Google creates it for me. The developer has to write the code to generate it and save it somewhere safe.

Where the guest ID can live

OptionWhat it isCatch
Anonymous auth service (like Firebase Anonymous Auth)A service creates a silent user and ID for the deviceLasts until the app's data is cleared or the user signs out. Can later be upgraded by linking an email or social login
Game Center or Play GamesThe OS game profile acts as the bridge between devicesTies progress to a platform profile, so it mostly suits games
iOS KeychainThe app saves its own UUID in secure OS storageUsually survives an uninstall, though Apple does not promise it. Syncs to my other devices only if the app opts in
Android Block StoreA Google Play service for saving small credentialsMeant for restoring sign-in data on a new phone. I did not verify what it does after an uninstall
Device backups (iCloud backup, Android Auto Backup)The OS backs up app data and restores it on a new phoneAuto Backup has a size cap and the developer can exclude files, so a saved token is not guaranteed to come back
Vendor IDs (iOS vendor ID, Android App Set ID)An ID shared by all apps from one developer on one deviceResets when all of that developer's apps are removed, and never moves to a second phone on its own. The two are similar, not identical

Advertising IDs are not a good option. On iOS the app has to ask permission through the tracking prompt. On Android there is no prompt, but users can delete the ID or opt out. Either way, I can't build an account on it.

What the stores track about purchases

The app's guest ID is not what Apple or Google use to track what I bought. Purchases are tied to my Apple ID or Google account.

What was boughtDoes the store remember it?Getting it back
Subscription or permanent unlock ("remove ads")Yes, against my store accountThe app asks the store for my purchase history. Apple expects a Restore Purchases button for these
Consumable (coins, gems, lives)No. Once the purchase is finished, the store forgets itOnly if the developer saved my balance on their server against an ID that survives

So if a guest buys 500 gems and the guest ID is lost, the gems are gone unless the developer backed up that ID or I link a real account.

Linking purchases to a guest ID

When I get a new phone and the app makes a brand-new guest ID, the store still knows I own the subscription. What the app does not know is which old save belongs to me. The developer has to build that link:

  • The app sends the store receipt to its server, which should check it there. The server side is the part that is hard to fake.
  • Both stores let a developer attach their own account ID to a purchase (an account token on Apple, an obfuscated account ID on Google). So "the stores never see my guest ID" is only mostly true.
  • If a new guest ID shows a receipt already linked to an old one, whether access moves over is a rule the developer sets, either in their own backend or in a service like RevenueCat. It is not something the store does for them.

Who writes what

JobStores out of the boxDeveloper code
Owning a subscription or unlockYes, tied to my store accountLittle: just ask the store
Creating a guest IDNoYes: make the UUID, save it somewhere that survives
Saving progress and settingsNo (except Game Center or Play Games)Yes: a database plus backup rules
Moving a save to a new phone using a receiptNoYes: a custom backend or a service like RevenueCat

What runs on the phone and what needs the cloud

On the phoneNeeds a server
Drawing screens, animations, button tapsMatchmaking and shared state between players
Single-player logic, photo filters, a calculatorChecking purchases and anti-cheat, so users can't fake results on their own phone
Making the guest ID, saving settings, reading the KeychainSyncing progress across devices
Heavy work like AI image generation or voice transcription

Where my epiphany came in

When the answer got to "the app calls a server for matchmaking", I asked: so mobile development is the same client-server architecture as web?

Yes. A phone app is a client, and the backend behind it (databases, auth, business logic) responds the same way whether the request comes from a browser or an app. Many companies run one backend for both their website and their mobile app. They talk over the same things: HTTP APIs, JSON, sometimes WebSockets.

The differences are all on the client side:

  • Code lives on the phone. An app is installed once as a package, while a website mostly loads its code from a server when I visit. Both are simplifications, since browsers cache and apps can pull config from a server.
  • Works offline by default. The code and local data are already on the device, so it can run without a connection and sync later.
  • Deeper hardware access. Bluetooth, NFC, GPS, biometrics, secure OS storage. Browsers are more sandboxed.
  • Updates go through review. A server fix reaches every web user right away, but a new app version has to pass Apple or Google review and users have to update.

This is also where my local AI worry sits. That "heavy computing" row is the one I care about. If a model can't fit and run on the phone, it becomes a cloud dependency, and then my app is a client with a server behind it like any other. That last bit is my own reasoning, not from the chat, and I still need to check what actually fits on a phone.

Takeaway

A guest account is just an ID the app invents and then has to store somewhere that survives. The stores own the purchase, the developer owns the link between the purchase and the ID, and underneath it all it is the same client-server model as the web. For my project, the real question is which work has to stay on the phone and which can go to a server.