Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jquery Mobile Web: Is Calling Native Apps possible?

I want to be able to touch a link on a mobile web page and have it launch a native mobile App, like Skype, for example. This seems like it would be a huge security problem, but I wonder if the mobile environment somehow allows this?

EDIT: YES! It works. a javascript call to document.window = "myapp://myparam" works great! Or for example, the following works:

document.window = "skype://";

The trick is knowing the name of the app.

like image 680
Doug Wolfgram Avatar asked Mar 19 '26 01:03

Doug Wolfgram


1 Answers

No a mobile web page will not allow this but there are some alternatives.

When building a mobile application, you have 3 choices

  1. Native Application
  2. Web Application
  3. Hybrid Application

The first option is not device agnostic as you would need to program specifically for each device.

The second option does not give you the ability to access the Native device controls (at least not yet with HTML5)

The final option is to write a simple wrapper application in the Native Language and render a browser within. This can allow for the best of both worlds. Majority of Content is built as a web app but certain features can use the native language.

Here are two of those Hybrid Approaches

  • PhoneGAP http://phonegap.com/
  • WoprkLight http://www.worklight.com
like image 68
John Hartsock Avatar answered Mar 20 '26 17:03

John Hartsock