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 curi开发者_Python百科ous if anyone knew of a way to do this?
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.
That isn't possible through any JavaScript interface.
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
精彩评论