I messed up my force upgrade logic! 🤦♂️
In my latest app, the code below runs if the required app version (fetched from Firebase Remote Config) is greater than the current app version.
But I forgot to point to the correct download URLs! 😭
Because of this mistake, if I bump the required app version in Firebase Remote Config, users running the old code will get an app upgrade prompt.
But once they click on it, they'll be redirected to the wrong App Store / Play Store URL.
Lessons learned:
- Review all TODOs before launch
- Test the app upgrade prompt before and after publishing the app
- Hardcoded strings are dangerous (I could have stored the download URLs in Remote Config instead)
Found this useful? Show some love and share the original tweet
Previous | Next |
---|---|
Debouncing in Flutter | Hide Generated Dart Files in GitHub PRs |