Phonegap? Mobile web development issues

  • Thread starter Deleted member 43669
  • Start date
Status
Not open for further replies.
D

Deleted member 43669

Guest
Hi all,

At work we have to develop apps for mobile devices. We are basically targetting iOS and Android, but the more, the merrier.

We'd rather not develop a separate app for each platform, so we are looking at ways to reuse as much code as possible. We'd rather also not be tied to "apps", it would be nice if our "apps" could be websites users could browse to.

I've heard of Phonegap, which seems to provide a JS library for a couple of platforms and a utility to generate apps from HTML + JS. This is fairly cross-platform, but we are wondering if we could "deploy" these apps as websites.

Thoughts, ideas?

Alex
 

Dromio

Ars Scholae Palatinae
1,411
You won't be able to access "native" phone capabilities like the camera from a website unless the device's browser allows it. Phonegap lets you write HTML pages and wrap them in a native app, so the calls for a camera or accelerometer can be accommodated. So in theory you could write a site that works fine in the web browser, but has extended capabilities when run inside your phonegap application. Have the site detect if it's wrapped and disable certain advanced aspects.

That said, I'm not a huge fan of this approach. Most apps that use a webview for the majority of their UI end up feeling clumsy. Some of the UI libraries out there get close to native look and feel, but always seem to fall short.

I'm a big fan of the Appcelerator tools. It's a toolchain that lets you write your code in javascript, but it generates a native IOS and Android app. You even define your UI using javascript, but it actually generates real native UI elements instead of just using a webview. It's a very smartly written framework and immensely powerful if you know how to write javascript "the right way".
 
Status
Not open for further replies.