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

From: Dick P.
Sent on: Monday, July 9, 2012 3:07 PM
All,
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 App.java file, but PhoneGap BUILD does not support this:


I've got 20,000 downloads of my PhoneGap Android app (https://play.google.com/store/apps/details?id=com.dickpepper.malco&hl=en)  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 stackoverflow.com. 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.

Thanks,

Dick Pepper
Vice President, Business Execution
FCM | VoxMD
[masked]

Our Sponsors

  • Vaco

    Vaco provides us with a meeting location, free food and beer.

  • PowerFlasher

    FDT is a flexible development toolkit for interactive developers

  • Adobe

    Support, Speakers, SWAG, and Giveaways

  • Influxis

    Influxis provides FMS services and free SWAG.

  • Ceed Creative

    Branding and Design

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