mitch
mitch

Reputation: 3

Use phonegap js to access native functionality without compiling an app?

Does anyone know if it is possible to use phonegap.js to access native functionality like the camera without compiling a mobile app? I would like to use it on a mobile-site and was curious if anyone knew of a way to do this?

Upvotes: 0

Views: 361

Answers (3)

Paul Beusterien
Paul Beusterien

Reputation: 29602

PhoneGap is a JavaScript to native wrapper that maps JavaScript/HTML/css to the mobile platform's native SDK. Since PhoneGap is only a wrapper, a compilation step is required

Upvotes: 0

MishieMoo
MishieMoo

Reputation: 6680

If you take a look at the PhoneGap Docs for each OS it says you need to compile in order to work, so no, you cannot use it on a website to access native functionality. The camera cannot be accessed from a website, it needs to be a native app.

See this SO post for a possible workaround. I haven't tested it though. And yes, it still does require a native app to be built.

Upvotes: 2

Winfield Trail
Winfield Trail

Reputation: 5695

That isn't possible through any JavaScript interface.

Upvotes: 1

Related Questions