Re-reading this question and the comments several times... I still do not understand the actual scenario... it'd be best to rephrase it.
Scenario: How to open an app from the web browser:
If you have added the following environments to your Worklight application:
- Mobile Web
- Android
- iPhone
And when visiting the Mobile Web version of your app, you want to display a message like "For the full experience, open the full application by clicking here".
Then:
- It is implied that the user already has the application installed.
- If it is not installed, you need to take care of that somehow
The way to handle this scenario is to use URI schemas:
Alternate solution: If you are not sure if the app will be installed or not, then instead of using URI schemas you can always point to either Google Play or Apple App Store, to the app page; the user will then have either a "Open" or "Install" link.
Scenario: How to open an app from my own app
If you have a Worklight Hybrid application (Mobile Web is not a Hybrid application), and you want to open another application from within it, you can:
- Use the same approach of URI schemas, or
- Use Cordova plug-ins
I have created this Worklight 6.1.0 project to demonstrate:
- Android - How to open, for example, the Android Settings app from your Worklight Hybrid app
- iOS - How to check if Waze is installed and open it, and if it is not installed then to open Apple Maps instead.
- See instructions.txt in the
apps\test
folder.