Case study
Nine days behind: the Android app not updating automatically
One phone ran our own Android app nine days old, with six newer versions waiting in Google Play and no word in the app that they existed. Here is the two-part silence behind it, what we changed, and what an owner can check.
Key takeaways
- A phone updating itself is a hope, not a plan.
- An update banner fed only by your own server is blind to the versions you send testers.
- Ask the store as well as your server whether a person has a newer version waiting.
- A banner that stays closed for the version it described is easier to live with than one that returns.
- Testers on an old version spend their time on software nobody uses any more.
The bug report that reached our team was about a problem we had already fixed. The phone behind it was running our own Android app nine days old, and in those nine days six newer versions had come out to that person through Google Play. The phone's store had never installed one by itself, and the app had never said that one was waiting.
What the engineer compared
Our engineer put three things side by side: the version on the phone, the version Google Play held for that person, and the version our server believed was current. The phone's copy was older than what the store held for that person. Our server, though, knew only the releases sent to everyone; the versions sent to testers were not in its records. So the store had something newer, the server had nothing to say, and the app had never asked the store.
What an old version costs a business
A fix reaches a person only when their phone installs it, and a new feature arrives the same way. Someone on an old version keeps meeting problems that were solved days ago and reports them again. That wears down trust in the app.
When the person on the old version is on your own team or among your testers, the testing itself is wasted. They spend their time on software nobody uses any more, and what they find is not what your customers will meet.
Why an Android app not updating automatically can stay quiet for days
The app was waiting for two things that never happened, and it only knew about one of them.
Our server already tells the app when a newer version is out, and the app shows a banner when it hears that. But the server only knows the versions released to everyone in the store. Versions sent only to a smaller group of testers, which for us is almost every day, were invisible to it. For a tester, the banner stayed silent.
The other half was the phone. Android installs app updates in the background only when the phone decides it may. On some phones, and with some settings, that can wait a long time or never happen, and nothing on the screen says so.
Think of two people each holding half of a message: our server knew a new version existed but could not see the tester versions, and the phone was meant to deliver updates by itself and did not. The one party that knew a newer version was waiting for this exact person was Google Play, and the app had never asked it.
What we changed in the app
The app now asks Google Play, through Play's own update service, whether it holds a newer version for this person. That service is simply the part of the store a phone can put a question to: is there something newer than what this person is running? Because the answer comes from the store, it covers versions released to everyone and versions sent to testers alike.
- It asks when the app opens and each time it comes back to the front, at most once an hour, so the check costs almost nothing.
- The banner shows the newer of the two answers: the version our server knows about, or the one Play holds for this person.
- A banner closed for one version stays closed for it. Release notes from our server appear only while they describe the version on offer.
- A required update keeps its own full screen, for the rare change an old version cannot survive.
- A copy of the app that did not come from Google Play gets no answer and shows nothing, so it never nags.
Where it stands
The change is in the next version of our Android app, on its way to Google Play. From that version on, a person whose phone does not update the app by itself is told inside the app that a newer one is waiting, whether it is a public release or one sent to testers. The report and the fix happened the same day.
What you can check yourself
- Look at which version your own team runs. Look on a settings or about screen inside the app.
- On an older Android phone, open the app's page in Google Play and see whether an Update button is waiting. If it is, that phone has not kept itself up to date.
- Ask whoever looks after your app how it learns that a newer version exists. The answer you want is not only that our server tells it but also that it asks the store.
- Ask whether versions sent to testers are covered, or only the releases everyone gets.
- Ask what the app does when it cannot get an answer. It should stay quiet rather than pester people.
Questions people ask
Why did my Android app not update by itself on my phone?
Android installs app updates in the background only when the phone decides it may, and on some phones or with some settings that can wait a long time or never happen. Nothing on the screen tells you either way. The app itself may also never have asked Google Play whether a newer version was waiting. Opening the app's page in Google Play lets you see whether an Update button is waiting.
What is the difference between a public release and a version sent to testers?
A public release is the version everyone who has the app gets through the store. A version sent to testers goes to a smaller group before it reaches everyone else. A server of your own may only know about the public ones, which is how a tester can sit on a version others have not received while the app says nothing.
How often should an app check for updates without annoying people?
In our app it asks when it opens and each time it comes back to the front, at most once an hour. The check is cheap enough to run in the background. The bigger question is the message: a banner someone can close, and that stays closed for that version, is easier to live with than one that keeps returning.
When should an app force an update instead of showing a banner?
A banner is a request and can be put off, which suits almost every change. A forced update takes the whole screen and stops people using the app until they install, so we keep it for the rare case where an old version genuinely cannot keep working.
Does an update banner work for an app installed outside Google Play?
For a copy of the app that did not come from Google Play, the question gets no answer, so ours shows nothing and stays quiet. That is deliberate: a message that cannot lead anywhere is worse than no message.