Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Close button in dialogs does not work on Android using phone gap and JQM 1.1.1 or 1.2.0 #4950

Closed
adamprocter opened this Issue · 6 comments

2 participants

Adam Procter John Bender
Adam Procter

Works fine on chrome browser on Nexus 7 and iOS devices in safari or as PhoneGap app but top left close X on Android PhoneGap will not close Dialog.

John Bender johnbender was assigned
John Bender

@adamprocter

We've determined that this an issue with Phonegap that we'll have to deal with specifically. Our release candidate should include a fix.

John Bender

@adamprocter

There's also a useBrowserHistory preference you can use though I can't find the docs for it. That won't work with Honeycomb from what I understand though.

<preference name="useBrowserHistory" value="true" />

or

<preference name="use-browser-history" value="true" />

Try that and let me know if it works.

Adam Procter

I am using PhoneGap build so may not be supported http://community.phonegap.com/nitobi/topics/usebrowserhistory_preference however I added

    <preference name="useBrowserHistory" value="true" />  

only tested in JellyBean 4.1.1 - did not work

John Bender johnbender closed this issue from a commit
John Bender johnbender abstract backward movement in history, Fixes #4950
`window.history.back` doesn't work in phonegap applications
after a page refresh, though it does work under hashchange/replacestate.
The solution is to use their `navigator.app.backHistory` method
along with a configuration option. The reasoning for the option
is to prevent any corner cases popping up with existing phonegap
applications. Forward history movement for the same usecase is _not_
addressed but remains an even lower priority.
bd94e54
John Bender

@adamprocter

Can you please confirm the fix by testing with

<script src="http://jquerymobile.com/test/js/jquery.mobile.js"></script>

As the jquery mobile include in your phonegap application?

John Bender

@adamprocter

Make sure to set $.mobile.phonegapNavigationEnabled = true somewhere in the <head> of your document as well.

John Bender johnbender referenced this issue from a commit
John Bender johnbender bstract backward movement in history, Fixes #4950
`window.history.back` doesn't work in phonegap applications
after a page refresh, though it does work under hashchange/replacestate.
The solution is to use their `navigator.app.backHistory` method
along with a configuration option. The reasoning for the option
is to prevent any corner cases popping up with existing phonegap
applications. Forward history movement for the same usecase is _not_
addressed but remains an even lower priority.
c3b89eb
Adam Procter

Yes its working - thank you

Alexander Schmitz arschmitz referenced this issue from a commit in arschmitz/jquery-mobile
John Bender johnbender abstract backward movement in history, Fixes #4950
`window.history.back` doesn't work in phonegap applications
after a page refresh, though it does work under hashchange/replacestate.
The solution is to use their `navigator.app.backHistory` method
along with a configuration option. The reasoning for the option
is to prevent any corner cases popping up with existing phonegap
applications. Forward history movement for the same usecase is _not_
addressed but remains an even lower priority.
0a53950
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.