Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8813267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:48:21+00:00 2026-06-14T03:48:21+00:00

My friend and I planned to start on a mobile Phonegap projects, which will

  • 0

My friend and I planned to start on a mobile Phonegap projects, which will cover iOS, Android, and Window Phone. It will require access to some native features like Camera Phone. It will also have to make some XHR server calls, which is done in CakePHP.

Now I am wondering how such a project is usually structured in Phonegap/ and what to Git commit.

Here are something I am considering:

1) We will need one repo for the server side stuff because this is relatively universal.

2) Should we keep all mobile apps in its separated Git repos? (so 1 for iOS, 1 for Android, 1 for Window Phone). This approach will have to maintain 3 separate www folder, each of will will be consisted of many html files.

3) Compact everything into one giant Git repo with a one-page HTML document index.html only. Everything else will be handled by javascript and device-related functions. (Though I don’t know how to handle page transition, navigation, back button on this approach yet — still learning)

I really admire this Wikimedia project done in Phonegap: https://github.com/wikimedia/WikipediaMobile. They keep everything in one giant repo and a universal www folder with separated device-related js files (like my approach 3). Though it’s a little complicated for me to trace through how they’ve done their.
If you happen to know of a case study broken down about WikipediaMobile, please let me know.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T03:48:22+00:00Added an answer on June 14, 2026 at 3:48 am

    The approach I recommend would be to have everything in one repository but break that down into a folder structure like:

    - android
        [eclipse_project]
    
    - ios
        [xcode_project]
    
    - windows
        [vs_project]
    
    - www
    

    Each platform specific folder contains the native project for each platform (i.e. your Xcode project sits in the iOS folder, your Eclipse project sits in the Android folder) but the actual HTML/JS application is stored in the www folder.

    In my opinion the web-application you build in a PhoneGap project should be entirely platform independent so there should only ever be one version. Given that the browsers across Android/iOS/Windows are pretty well standardised this shouldn’t be too much of a problem so I can’t see why separate JS files would be necessary. At any rate, if you need different behaviour per device you could identify the devices then handle it at a JavaScript-code/CSS level.

    As @F481 hints at, whether or not you use PhoneGap Build will make a big difference. If you use PhoneGap build you won’t need native projects (which is great if you aren’t familiar with the native IDEs) so you’ll only need a single folder for the web-application. I recommend you take a look!

    I hope this answers your questions!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My friend and I were discussing the other day which style of code is
Friend functions should be able to access a class private members right? So what
Friend's, I have an single image in which it set has screen home page
Friend's , I need to upload an image from android device to Facebook server
I have a friend who works at a job that has no planned upgrade
Friend clicks button. Link #1 pops up in new window. After 10 seconds of
My friend sent me today a new .xaml pages for windows phone app. I
Friend's, I want to know how to change currently using android sdk to another,(i.e)
friend's I have a task to place the horizontal scroll or swipe menu tabs
My friend gave me a database file: record.mdf . I copied that .mdf file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.