'API welcomescreen.close(); doesnt works javascript

I'm trying to close welcomescreen using welcomescreen.open(false);. I'm also trying welcomescreen.close(); but it doesn't work either.

Can somebody show me right way to solve this? I can hide welcome screen by set open: false

but when i put in event like this in app.js it still opened

onDeviceReady: function() {
  this.receivedEvent('deviceready');
  StatusBar.styleLightContent();
  window.setTimeout(function () {
    navigator.splashscreen.hide();
  }, 0 - 0);
  welcomescreen.open(false);
},

Here welcomescreen.js based on this library



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source