Flutter OTA (hot update) on Android with REQUEST_INSTALL_PACKAGES banned

1.1k Views Asked by At

I want a mechanism to push small-features and bug-fixes quickly, because Playstore-reviews are getting stuck for at least one week again. I checked ota_update which seemed promising, but it uses REQUEST_INSTALL_PACKAGES permission, which has been banned by Playstore for any new update / App. Next suggestion was to use Firebase-Remote-Config but that does not help in a buggy-code scenario, it's more for A/B testing. I have not tried Hydro-SDK because it involves using TypeScript. Another option is Chimera but from its Github activity, it seems very new and might not be stable. Requesting some suggestions on what steps I can take. Thanks!

2

There are 2 best solutions below

1
iStornZ On

You can give a try to flutter_eval

1
Ozan Taskiran On

You could write your own backend and define a route that checks if there is an update.

To do this, you store the latest version number in the database. Every time you want to run an update, you send the current version number of your app and compare it with the version in the database. If the version is smaller than the version in the database, then you can download your apk from a file server and run it.