Mobile applications for mobile phones and version control and updates

Currently, I have created an application using the space bar of a phone oriented to Android and BlackBerry platforms.

I use a combination of jQuery mobile and Phonegap for my application, as both are open source frameworks and improvements, and bug fixes continue to occur. I wanted to know what would be a good solution to notify my users about updating their application when I update the above framework in my application.

One of the solutions that I had in mind was to support versioning on my server for applications, when the application is downloaded to a user device, we can make an ajax call to check for version updates, and then warn the user about updating their application.

The Android market also has an automatic update function, how it works! How do I do this, which would be a good approach.

+5
source share
1 answer

"", . . Android- App World, App .

( ) . , , .

​​, somwhere , , . , , .

Eg.

:

    $.ajax({
              url: webservice_host + '&callback=?',
              dataType: 'jsonp',
              success: function (data) {
               //data -> remote version

               var local_version;
               if (local_version < data ){
                   alert("There is a newer version available");
                 }

              }

            });

(php ):

<?php

print mysql_real_escape_string($_GET['callback']). '( 1.1 )';

?>

.. .

+2

All Articles