I am building an HTML5 app with MoSync and I would like to open a URL in the device’s default webbrowser from the JavaScript. Could you please paste some example code how could this be done?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Right now you need to write some code in C++ to open an external browser. Here is a blog post that describes how to do that:
http://www.mosync.com/blog/2013/01/how-extend-javascript-custom-c-code-opening-google-maps-hybrid-app
In the upcoming MoSync SDK 3.2.1 and MoSync Reload 1.0, this functionality will be available directly from JavaScript by calling: