SHARE
TWEET

Untitled

a guest Jul 17th, 2017 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. navigator.startApp.check("com.application.name", function(message) { /* success */
  2.     console.log(message); // => OK
  3. },
  4. function(error) { /* error */
  5.     console.log(error);
  6. });
  7.    
  8. cordova plugin add https://github.com/whiteoctober/cordova-plugin-app-version.git
  9.    
  10. cordova.getAppVersion.getVersionNumber(function (version) {
  11.     alert(version);
  12. });
  13.  
  14. cordova.getAppVersion.getVersionCode(function (code) {
  15.     alert(code);
  16. });
RAW Paste Data
Top