addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcredit-cardcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobe--smallglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1languagelaunch-new-window--smalllight-bulblinklocation-pinlockm-swarmSearchmailmessagesminusmobilemoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Re: [615Flash] Giving out Adobe CS6 tomorrow at phonegap meeting

From: Scott S.
Sent on: Monday, July 9, 2012 3:41 PM
I've never used PhoneGap -- so I could be way off-base here, but could you just do a workaround of saving a local hash such as {page_requested: {args_to_format}}, store it in js or sqlite,
then format by pulling the data in when the target page loads?


On Mon, Jul 9, 2012 at 3:23 PM, Dick Pepper <[address removed]> wrote:
I hit Reply on purpose to put this in front of all of you: I won't be there, but I do have a single very critical question that many of you will have as well, sooner or later, so I'm asking this of the entire list to keep this one question in mind and get an answer for all of us:

Will PhoneGap's next version or PhoneGap Build's next version address the problem that kills page URLs with arguments? This has been asked since last 5 versions of PhoneGap. It was a Nitobi problem and now its an Adobe Cordova problem.

Imagine you have a page that, based on arguments provided to it, it does something specific to the arguments. In my real-word example, I have a screen called cinema.html. From my home screen I have a list of theaters and it passes the theater ID and name to the single page so I can format it and display it properly, then fetch the results from the web and populate.
When using PhoneGap to call a page, you'd have a link like this:
a href="cinema.htmll?cinemaid=26&theatername=Cordova+Cinema">Cordova Cinema</a
This will call up the cinema page, pass the links and the page will pull down the theater showtimes.

I'm sure you will all do something like this: create a page and pass arguments to it in order to format it.

As it turns out, Android OS - NOT PhoneGap - sometimes treats this url as a literal filename and returns this error:

APPLICATION ERROR a network error occurred. (file:///android_asset/www/cinema.html?cinemaid=26&theatername=Cordova+Cinema)

The file:/// syntax is correct with three slashes. Its how Android looks for local files in your www directory, and it creates this path automagically. But it doesn't always parse the arguments.

It varies from device to device. Samsung Galaxy, no problem. Raxor MAXX, poops itself. HTC, forget about it.

This is a topic of discussion within the PhoneGap community and as of today, AFIK, this is a problem that is Sometimes solved by adding loadtimeout arguments to the file, but PhoneGap BUILD does not support this:

I've got 20,000 downloads of my PhoneGap Android app (  and 21 five stars and 21 complaints. So you know there are a LOT more complaints out there, but people are likely just tossing my app. This is a critical problem for all developers who don't want to create a billion screens or ever use an argument. It has many, many discussions on And there doesn't seem to be a resolution.

If someone can PLEASE ask these two smart guys how we might fix the problem, it will benefit the Nashville PhoneGap community. Thanks for your time and attention.


Dick Pepper
Vice President, Business Execution

Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Dick Pepper ([address removed]) from Interactive Developers of Nashville.
To learn more about Dick Pepper, visit his/her member profile
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy