iOS version PhoneGap jump page problem

Source: Internet
Author: User

Technical issues: The system automatically check for updates, a new version to prompt, and jump to the app Store, found unable to jump to the app Strore, but can open Baidu and other Web pages

Install plugin: org.apache.cordova.inappbrowser

Plugin Address: Http://plugins.cordova.io/#/package/org.apache.cordova.inappbrowser

Install plug-in method:Cordova plugin Add Org.apache.cordova.inappbrowser

How to use:

window.open (URL, target, options);


    • URL : the URL to load  (String) . Call encodeuri ()  on This if the URL contains Unicode characters.

    • target : The target in which-to-load the URL, an optional parameter this defaults to  _SELF.&NBSP (String)

      • _self:opens in the Cordova WebView if the URL was in the white L IST, otherwise it opens in Theinappbrowser.
      • _blank:opens in The inappbrowser.
      • _system:opens in the system ' s Web browser.
    • options : Options for The inappbrowser. Optional, defaulting to: location=yes.  (String)

The options string must not contain any blank space, and each feature ' s name/value pairs must is separated by a comma. Feature names is case insensitive. All platforms support the value below:

  • Location: Set to Yes or no to turn the Inappbrowser's location bar on or off.

    Android only:

  • hidden: Set to Yes to create the browser and load the page, but not show it. The Loadstop event fires when loading was complete. Omit or set to No (default) to the browser open and load normally.

  • ClearCache: Set to Yes to has the browser ' s cookie cache cleared before the new window is opened
  • Clearsessioncache: Set to Yes has the session cookie cache cleared before the new window is opened

    IOS only:

  • closebuttoncaption: Set to a string to use as the of the Done button ' s caption. Note that you need to localize this value yourself.

  • disallowoverscroll: Set to Yes or no (default is no). Turns on/Off the Uiwebviewbounce property.
  • hidden: Set to Yes to create the browser and load the page, but not show it. The Loadstop event fires when loading was complete. Omit or set to No (default) to the browser open and load normally.
  • ClearCache: Set to Yes to has the browser ' s cookie cache cleared before the new window is opened
  • Clearsessioncache: Set to Yes has the session cookie cache cleared before the new window is opened
  • Toolbar: set to Yes or No to turn the toolbar in or off for the Inappbrowser (defaults to Yes)
  • Enableviewportscale: Set to Yes or no to prevent viewport scaling through a META tag (defaults to No).
  • mediaplaybackrequiresuseraction: Set to Yes or no to prevent HTML5 audio or video from autoplaying (Defaults to n O).
  • allowinlinemediaplayback: Set to Yes or No to allow In-line HTML5 media playback, displaying within the browser W Indow rather than a device-specific playback interface. The HTML ' s video element must also include the Webkit-playsinline attribute (defaults to NO)
  • keyboarddisplayrequiresuseraction: Set to Yes or no to open the keyboard when form elements receive focus via JAV Ascript's focus () call (defaults to Yes).
  • suppressesincrementalrendering: Set to Yes or no to-wait until all new view content is received before being rend Ered (defaults to No).
  • Presentationstyle: Set to PageSheet, Formsheet or fullscreen to Set the presentation style (defaults to fullscreen ).
  • Transitionstyle: Set to FlipHorizontal, Crossdissolve or coververtical to Set the transition style (defaults to C oververtical).
  • toolbarposition: Set to top or bottom (default is bottom). Causes the toolbar to is at the top or bottom of the window.

    Windows only:

  • hidden: Set to Yes to create the browser and load the page, but not show it. The Loadstop event fires when loading was complete. Omit or set to No (default) to the browser open and load normally.

There are many other ways to study.

iOS version PhoneGap jump page problem

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.