Support Article
window.launchbox.Browser.start () is not launching in new window
SA-59730
Summary
The below code is used to open a browser from a mobile application. However, the browser does not open in a new window. window.launchbox.Browser.start(url,{external:true})
Removing external:true, opens the browser in the mobile application.
Error Messages
Not Applicable
Steps to Reproduce
- Add the below code in the UserWorkForm in a function.
window.launchbox.Browser.start(url,{external:true})
- In one of the sections, add a link with action as On Click Run Script with the above function.
- Run the application in the mobile application. Navigate to the section with the link.
- Click the link.
Root Cause
A software use or operation error. The keyword "external", in the API, was used without single quotes.
Resolution
Perform the following local-change:
Syntax to use the API is, window.launchbox.Browser.start(url,{'external':true})
For more information, refer to: https://community1.pega.com/sites/pdn.pega.com/files/mobileclient/7301/api/client_api/container_example_browser.html
Published July 23, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.