Hi, I'm new with Phonegap. i tried to build my application by reusing my web code to put in index.html in directory root/www. after that i compile with adobe id. and tried to install it and run. but it just show phone gap device is ready without change content to my web. what's wrong?
- 14 Posts
- 0 Reply Likes
Posted 4 years ago
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
Your directory structure and possibly your config.
Why did you put index.html in 'root/www'?
Why did you put index.html in 'root/www'?
- 14 Posts
- 0 Reply Likes
I installed Phonegap with Gui in Windows. i created project with that Phonegap desktop. it automatically created index.html in project name. let's say it dragon. so the directory index.html will be in dragon/www/. and now i change inside of index.html and try to compile it and run it. but it doesn't change. but in preview web Phonegap change.
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
You made the mistake most people make.
The Phonegap Desktop app prepares for local builds, not for PGB.
This might be a good time to start reading the PGB Docs, especially the Getting Started section.
Then:
- move config.xml into /www
- adjust the paths to icons/splashes in config
- zip up the CONTENTS of /www, not the directory itself
- rebuild
The Phonegap Desktop app prepares for local builds, not for PGB.
This might be a good time to start reading the PGB Docs, especially the Getting Started section.
Then:
- move config.xml into /www
- adjust the paths to icons/splashes in config
- zip up the CONTENTS of /www, not the directory itself
- rebuild
Chris Griffith, Champion
- 347 Posts
- 92 Reply Likes
Unfortunately, the PhoneGap Desktop app and PhoneGap Build are not 100% compatible.
You need to move the config.xml file inside the www folder, along with the icons and splashscreen. You will need to update the content in the config.xml file to point to the new locations.
Then zip the www folder and upload it to PhoneGap Build.
You might want to delete the older app before you install the new one just to be sure.
Chris
You need to move the config.xml file inside the www folder, along with the icons and splashscreen. You will need to update the content in the config.xml file to point to the new locations.
Then zip the www folder and upload it to PhoneGap Build.
You might want to delete the older app before you install the new one just to be sure.
Chris
- 14 Posts
- 0 Reply Likes
- 1 Post
- 0 Reply Likes
Unfortunately 'this might be a good time to read the PGB docs' is not particularly helpful, when there are separate sets of sparse and conflicting docs for PGB, PhoneGap, and Cordova.
The PGB docs say I just need config.xml and index.html and that it will do the rest, but - surprise - I get a fatal error on the device when I try to install an app structured like that.
I think I am getting somewhere slowly, but the solution seems to be to have this absurd folder structure with three different sets of assets and index.html(s), which get built into the APK apparently at random!
The PGB docs say I just need config.xml and index.html and that it will do the rest, but - surprise - I get a fatal error on the device when I try to install an app structured like that.
I think I am getting somewhere slowly, but the solution seems to be to have this absurd folder structure with three different sets of assets and index.html(s), which get built into the APK apparently at random!
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
Unfortunately 'this might be a good time to read the PGB docs' is not particularly helpful, when there are separate sets of sparse and conflicting docs for PGB, PhoneGap, and Cordova.That's why I mentioned the PGB Docs, in order to distinguish them from the other sets. And the PGB Docs are easily found by clicking 'Docs' in the main bar of this forum. How easy can it be?
The PGB docs say I just need config.xml and index.html and that it will do the restNo, they don't. For instance, they also mention files like icons and splashes. A file called .pgbomit is dcumented, too.
It is a general misconception that PGB projects only require an index.html and a config.xml
but the solution seems to be to have this absurd folder structure with three different sets of assets and index.html(s), which get built into the APK apparently at random!There are no three different sets of assets and index.html(s).
Perhaps this might be a good time to read - and understand - the PGB Docs.
Related Categories
-
PhoneGap Build
- 15111 Conversations
- 275 Followers



