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 Sep 6, 2012 · 6 comments

2 participants

@adamprocter

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.

@johnbender johnbender was assigned Sep 11, 2012
@johnbender

@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.

@johnbender

@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.

@adamprocter

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

@johnbender johnbender added a commit that closed this issue Sep 12, 2012
@johnbender 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
@johnbender

@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?

@johnbender

@adamprocter

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

@johnbender johnbender added a commit that referenced this issue Sep 12, 2012
@johnbender 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
@adamprocter

Yes its working - thank you

@arschmitz arschmitz added a commit to arschmitz/jquery-mobile that referenced this issue Oct 16, 2012
@johnbender 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