0

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!

Kaspi
  • 3,538
  • 5
  • 24
  • 29

1 Answers1

1

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:

mosync.app.openExternalURL("http://yourpage.com");
Mikael Kindborg
  • 247
  • 2
  • 5