Alert On Initial Launch
From NimbleKit
[edit] How to create an alert on your apps initial launch
Add the functions (in this case "firstLaunch" & "checkFirstLaunch") to your apps main.html:
<script type="text/javascript">
function firstLaunch()
{
NKAlert("Alert Title", "Alert text goes here.");
}
function checkfirstLaunch( ){
var settings = new NKSettings();
if( settings.getValueForKey("runOnce") != "true" ){
settings.setValueForKey("true", "runOnce");
firstLaunch();
}
}
</script>
And you can call it as follows:
<body onLoad="checkfirstLaunch()">
