Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

[iOS] Display message each new update of the app

$
0
0

hello to all guys

I wanted to ask if my solution might be fine for what I would do

setTimeout(function() {
 
        var app_version = Titanium.App.version;
 
        if (Ti.App.Properties.getString('my_app_version') != app_version) {
 
         var alertDialog = Titanium.UI.createAlertDialog({
                title : 'Info',
                message : 'The app version is'+ app_version+'.',
                buttonNames : ['OK']
            });
            alertDialog.show();
            Ti.App.Properties.setString('my_app_version', app_version);
        }
    }, 1500);
practically every update of the app I would like that the first time the user starts the app updated, you receive a message, for example, says "the app has been updated to version xxx)

Viewing all articles
Browse latest Browse all 8068

Trending Articles