Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
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

@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
@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 closed this issue from a commit
@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 referenced this issue from a commit
@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 referenced this issue from a commit in arschmitz/jquery-mobile
@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
Something went wrong with that request. Please try again.