I\'m developing a web application that uses PhoneGap:Build for a mobile version and want to have a single codebase for the \'desktop\' and mobile versions. I want to be able
None of which work, unless you remove the PhoneGap Javascript file from the desktop version of the app, which defeats my goal of having one codebase.
Another option would be to use merges folder, see screenshot below.
You can add platform-specific files / override default ones.
(it should do the trick in some scenarios)

In other words: Rather than detecting the browser, you just don't include certain files for desktop build / attach certain files for iOS only.