PhoneGap Android Querystring issue

僤鯓⒐⒋嵵緔 提交于 2019-12-20 04:48:06

问题


I seem to be having a issue using phoneGap with querystrings

I wanted to have a page as:

view.html?matchid=1234

I have also tried:

view.html#1234

Both of these work in the emulator (running 2.3) but neither work when on my phone (ICS 4.0) - It errors as if the page doesn't exists...

I believe it may be a issue with the version of android. Does anyone know of a fix/work around I could possibly do.

Ideally it would be still using the query in some way. If not the other option I thought of was to use localStorage. Save something to it before going to a generic view.html page which then takes the Id out of localStorage....


回答1:


There is an issue for this in the Android issue tracker. http://code.google.com/p/android/issues/detail?id=17535

It affects all versions of Honeycomb and ICS.

It has been fixed and marked for Future release, so don't expect it anytime soon.

You can find some workarounds on the issue thread.



来源:https://stackoverflow.com/questions/9594142/phonegap-android-querystring-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!