Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
Changing text in the inAppUpdater prepare and download alert boxes.
-
Hi I am using the code below for the Monaca-in-App-Updater plugin:
How can I change the the title and text in the two dialog boxes, “Preparing” & “Downloading”
Thanks.
function upDate() { monaca.InAppUpdater.autoUpdate( { connectDelay : 0000, connectTimeout : 30000, readTimeout: 300000, nextTask : function(res) { if (res.requireRestart) { monaca.InAppUpdater.updateAndRestart().then( function(){ }, function(fail) { alert(JSON.stringify(fail)); }, function( json ) { // alert( JSON.stringify(json)); var s = json.count + "/" + json.total + " are done."; // console.log( s ); document.getElementById("result").innerHTML = s; } ); } else { /* alert("アプリスタート"); */ } }, failTask : function(res) { monaca.InAppUpdater.showAlertDialog( { title : "Error Code "+res.error.code , message : res.error.message , button : { label : "OK" , handler : function() { } } } ).then( function(json) { }, function(fail) { } ); } }); }