In Flutter how to send updates for android app and force users to update?











up vote
-2
down vote

favorite












In Flutter how can I manage versions and send updates or patches for android application and force users to update. I also want to stop users how haven't updated. My approach would be checking the version at very first page of the application and display an alert? Is that the way?










share|improve this question






















  • Sounds pretty ugly. It might take a few days for updates to file down. you can check the current installed version here pub.dartlang.org/packages/package_info
    – user1462442
    Nov 8 at 21:17

















up vote
-2
down vote

favorite












In Flutter how can I manage versions and send updates or patches for android application and force users to update. I also want to stop users how haven't updated. My approach would be checking the version at very first page of the application and display an alert? Is that the way?










share|improve this question






















  • Sounds pretty ugly. It might take a few days for updates to file down. you can check the current installed version here pub.dartlang.org/packages/package_info
    – user1462442
    Nov 8 at 21:17















up vote
-2
down vote

favorite









up vote
-2
down vote

favorite











In Flutter how can I manage versions and send updates or patches for android application and force users to update. I also want to stop users how haven't updated. My approach would be checking the version at very first page of the application and display an alert? Is that the way?










share|improve this question













In Flutter how can I manage versions and send updates or patches for android application and force users to update. I also want to stop users how haven't updated. My approach would be checking the version at very first page of the application and display an alert? Is that the way?







android flutter






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 8 at 2:59









Praneeth Dhanushka Fernando

11




11












  • Sounds pretty ugly. It might take a few days for updates to file down. you can check the current installed version here pub.dartlang.org/packages/package_info
    – user1462442
    Nov 8 at 21:17




















  • Sounds pretty ugly. It might take a few days for updates to file down. you can check the current installed version here pub.dartlang.org/packages/package_info
    – user1462442
    Nov 8 at 21:17


















Sounds pretty ugly. It might take a few days for updates to file down. you can check the current installed version here pub.dartlang.org/packages/package_info
– user1462442
Nov 8 at 21:17






Sounds pretty ugly. It might take a few days for updates to file down. you can check the current installed version here pub.dartlang.org/packages/package_info
– user1462442
Nov 8 at 21:17














2 Answers
2






active

oldest

votes

















up vote
0
down vote













Flutter (more precisely Dart) is not different from a java application on that point, and there are multiple solutions we can imagine. Here are a few of them :




  • You can call the play store and parse the result to get the current
    version of you application and display a message to the user
    preventing him to use his version of the app (subject to changes and not easy to follow)

  • You can also use your own server and enable your app to read the
    current version from there.

  • If your application does some calls to an API that you manage, you can include the app
    version in each call and return a special error code to the application if the version
    is outdated






share|improve this answer




























    up vote
    0
    down vote













    Normally this is handled by the Google Play Services by just updating your app into the Google Play Console following some rules. I have never forced a user to update to a greater version but updates are downloaded in background after a new release is available.



    Read the following article from Google support team, I think it may be helpful for you:



    Update your apps






    share|improve this answer





















      Your Answer






      StackExchange.ifUsing("editor", function () {
      StackExchange.using("externalEditor", function () {
      StackExchange.using("snippets", function () {
      StackExchange.snippets.init();
      });
      });
      }, "code-snippets");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "1"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53200933%2fin-flutter-how-to-send-updates-for-android-app-and-force-users-to-update%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      0
      down vote













      Flutter (more precisely Dart) is not different from a java application on that point, and there are multiple solutions we can imagine. Here are a few of them :




      • You can call the play store and parse the result to get the current
        version of you application and display a message to the user
        preventing him to use his version of the app (subject to changes and not easy to follow)

      • You can also use your own server and enable your app to read the
        current version from there.

      • If your application does some calls to an API that you manage, you can include the app
        version in each call and return a special error code to the application if the version
        is outdated






      share|improve this answer

























        up vote
        0
        down vote













        Flutter (more precisely Dart) is not different from a java application on that point, and there are multiple solutions we can imagine. Here are a few of them :




        • You can call the play store and parse the result to get the current
          version of you application and display a message to the user
          preventing him to use his version of the app (subject to changes and not easy to follow)

        • You can also use your own server and enable your app to read the
          current version from there.

        • If your application does some calls to an API that you manage, you can include the app
          version in each call and return a special error code to the application if the version
          is outdated






        share|improve this answer























          up vote
          0
          down vote










          up vote
          0
          down vote









          Flutter (more precisely Dart) is not different from a java application on that point, and there are multiple solutions we can imagine. Here are a few of them :




          • You can call the play store and parse the result to get the current
            version of you application and display a message to the user
            preventing him to use his version of the app (subject to changes and not easy to follow)

          • You can also use your own server and enable your app to read the
            current version from there.

          • If your application does some calls to an API that you manage, you can include the app
            version in each call and return a special error code to the application if the version
            is outdated






          share|improve this answer












          Flutter (more precisely Dart) is not different from a java application on that point, and there are multiple solutions we can imagine. Here are a few of them :




          • You can call the play store and parse the result to get the current
            version of you application and display a message to the user
            preventing him to use his version of the app (subject to changes and not easy to follow)

          • You can also use your own server and enable your app to read the
            current version from there.

          • If your application does some calls to an API that you manage, you can include the app
            version in each call and return a special error code to the application if the version
            is outdated







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 8 at 13:21









          Muldec

          3688




          3688
























              up vote
              0
              down vote













              Normally this is handled by the Google Play Services by just updating your app into the Google Play Console following some rules. I have never forced a user to update to a greater version but updates are downloaded in background after a new release is available.



              Read the following article from Google support team, I think it may be helpful for you:



              Update your apps






              share|improve this answer

























                up vote
                0
                down vote













                Normally this is handled by the Google Play Services by just updating your app into the Google Play Console following some rules. I have never forced a user to update to a greater version but updates are downloaded in background after a new release is available.



                Read the following article from Google support team, I think it may be helpful for you:



                Update your apps






                share|improve this answer























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  Normally this is handled by the Google Play Services by just updating your app into the Google Play Console following some rules. I have never forced a user to update to a greater version but updates are downloaded in background after a new release is available.



                  Read the following article from Google support team, I think it may be helpful for you:



                  Update your apps






                  share|improve this answer












                  Normally this is handled by the Google Play Services by just updating your app into the Google Play Console following some rules. I have never forced a user to update to a greater version but updates are downloaded in background after a new release is available.



                  Read the following article from Google support team, I think it may be helpful for you:



                  Update your apps







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 8 at 13:29









                  gratien asimbahwe

                  8361722




                  8361722






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53200933%2fin-flutter-how-to-send-updates-for-android-app-and-force-users-to-update%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      這個網誌中的熱門文章

                      Tangent Lines Diagram Along Smooth Curve

                      Yusuf al-Mu'taman ibn Hud

                      Zucchini