Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit ef0d3c1

Browse files
committed
add phonegap enabled documentation
1 parent c3b89eb commit ef0d3c1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/pages/phonegap.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ <h2>$.mobile.allowCrossDomainPages</h2>
5656
$.mobile.allowCrossDomainPages = true;
5757
});</code></pre>
5858

59+
<h2>$.mobile.phonegapNavigationEnabled</h2>
60+
61+
<p>In Android PhoneGap has as special navigation helper in place to work around issues with Honeycomb <code>navigator.app.backHistory</code> that replaces <code>window.history.back</code> . For most jQuery Mobile applications it's unecessary to have knowledge or make use of this helper because the vanilla history object works fine for hashchange and replace state alterations of the embedded browser history. <b>If and old if</b> your PhoneGap application uses a full page refresh (eg, for form validation) and you wish to support the Android platform please make sure to set <code>$.mobile.phonegapNavigationEngabled = true</code> either in a <code>mobileinit</code> call back or anywhere before user interaction take place with the page. This will replace calls to <code>window.history.back</code> with calls to PhoneGap's helper method thereby alleviating history navigation issues associated with full page refreshes on Android devices.</p>
62+
63+
5964
<h2>PhoneGap White Listing</h2>
6065

6166
<p>PhoneGap 1.0 introduced the idea of white-listing servers that its internal webview is allowed to make cross-domain requests to. You can find info about it here on the <a href="http://wiki.phonegap.com/w/page/40796976/Install%20the%20latest%20%28trunk%29%20source%20of%20iOS%20PhoneGap">PhoneGap wiki</a>:</p>

0 commit comments

Comments
 (0)