0

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?

mitch
  • 3
  • 1

3 Answers3

2

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.

Community
  • 1
  • 1
MishieMoo
  • 6,620
  • 2
  • 25
  • 35
1

That isn't possible through any JavaScript interface.

Winfield Trail
  • 5,535
  • 2
  • 27
  • 43
0

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

Paul Beusterien
  • 27,542
  • 6
  • 83
  • 139