This is the case
1) check whether someXXX app is installed in the device
2) if installed open the app.
3) if not, open play store/App store app with some
Check this plugin, looks like it answers all your points: https://github.com/lampaa/org.apache.cordova.startapp
You can also take a look at the following accepted answer: IBM Worklight - How to launch another app?
Two options are provided within: