I want to create a mobile website in addition to my native apps using the phone newsletter. Is it possible to use the same code base?

I want to have a mobile site, in addition to the native iphone / android application, using the phone latch. I am currently using PHP (in particular CodeIgniter, but this is not so important) and jQuery for the mobile site.

I think that the website and phonegap code base can use the same PHP server for server requests, but the interface should be slightly different, since the phone has its own javascript for accessing native functions (camera, accelerometer, etc. .). that the browser was unable to access. For this reason, I think that the interface should be developed separately for the mobile site and for the phone screen saver.

It makes sense? Did I miss something that would allow me to use the same phonegap codebase as a mobile site?
+3
source share
1 answer

When I work, we developed our mobile site and Android application with the same code base, except for the submissions and user interface. Everything on the website is in pure JS and HTML. We have a third-party API that we request data from and then create it using Mustache.

Titanium Android-, , , . , iPhone PhoneGap. , , , iPhone, PhoneGap. , , JS, , PhoneGap.

, , Zepto.js jQuery. jQuery IE IE, $ . .

, PhoneGap , . , JS , , Obj C Android. , .

+4

All Articles