how to in app update

0 favourites
  • 11 posts
From the Asset Store
Fantasy Game includes more than 600 sound effects inspired by hit computer games like World of Warcraft and Diablo.
  • Hello guys,

    Is there any way to check if there is a new app version and update it? I mean check if a new version is ready and open the link to google play.

  • You can make an AJAX request to your webserver or some other service like pastebin.com to check if there is a new version. For example, it can be a simple text file with the latest app version number, uploaded somewhere on your website. Request that file with AJAX, compare version number and if it's greater than the app current version - redirect user to Google Play.

  • Thanks a lot dop2000

    If I understand, I can upload a txt with the new version number, do a request of it and compare the number with the current app version number and then open google play web.

    The thing is how can I do it? Im trying something like

    on start on layout-----request (my web) but how can I look for a file (txt) and compare the number?

    I totally lost on this, can you make an example? I will appretiate it

  • + System: On start of layout
    -> AJAX: Request "https://mywebsite.com/app_version.txt" (tag "ver")
    
    + AJAX: On "ver" completed
    ----+ System: ProjectVersion < AJAX.LastData
    -----> Browser: Go to "https://play.google.com" (target self)
    
    
    
    
  • Thank you so much dop2000,

    I use google drive to store the .txt but the link I get is not like "https://mywebsite.com/app_version.txt", maybe is because this why doesn´t work?

    I was searching for a way to store the .txt in the format you put for example but I did not find anything. Any idea? thanks a lot

  • > 
    + System: On start of layout
    -> AJAX: Request "https://mywebsite.com/app_version.txt" (tag "ver")
    
    + AJAX: On "ver" completed
    ----+ System: ProjectVersion < AJAX.LastData
    -----> Browser: Go to "https://play.google.com" (target self)
    
    
    
    

    could you teach me how to create the txt file or any other type of file in blogger and send the ajax command to download the file and bring it into the app

  • evaristo24 I don't know if you can use google drive for this task. The file should be available for unregistered users and in clear text format, google drive doesn't support this.

    Try searching for some other service which allows to share plain text, here is an example with pastebin:

    https://pastebin.com/raw/s0KccyVC

    If you create an account at PasteBin, you will be able to edit your pastes (which you will need to do when you release a new version).

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • evaristo24 I don't know if you can use google drive for this task. The file should be available for unregistered users and in clear text format, google drive doesn't support this.

    Try searching for some other service which allows to share plain text, here is an example with pastebin:

    > https://pastebin.com/raw/s0KccyVC

    If you create an account at PasteBin, you will be able to edit your pastes (which you will need to do when you release a new version).

    actually i meant not on google drive but on blogger blogger.com

  • Lucas Jogos My reply was for evaristo24. If you have a question about blogger.com API, you should probably create your own thread.

  • Hello dop2000,

    It works!!! I cannot express my gratitude enough for your help, thank you so much!!!

  • Lucas Jogos My reply was for evaristo24. If you have a question about blogger.com API, you should probably create your own thread.

    thank you very much, thank you for your kindness

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)