Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to automatically update a Flutter Mobile app to newer version when the application is not on play store or app store?

let's say i have a Flutter APK hosted on my website where users can download and install , what i'm interested to know is how possible that the application can check for newer version when the app lunches and if true a progress bar appears showing the automatic updating of the application from the server (not play store or app store) ? .
here is a company that do exactly the mentioned above meaning :

  • download the apk from there server
  • whenever a new version is released the app will update from their server

any ideas how to achieve this ?

like image 526
Asmoun Avatar asked Sep 05 '20 23:09

Asmoun


1 Answers

ota_update(as mentioned by @Asmoun) looks good to me for this use case, alternative would be to download APK using something like flutter_downloader and start intent for install using android_intent.

Moreover for fetching latest version code or download URL, I suggest you use firebase_remote_config.

like image 68
Harsh Bhikadia Avatar answered Sep 23 '22 15:09

Harsh Bhikadia