1.0.9 • Published 9 months ago

cordova-plugin-ionic-chrome v1.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

cordova-plugin-ionic-chrome

Cordova plugin for opening Chrome Custom Tabs when the WebView version is not supported.

Description

This Cordova plugin allows you to open Chrome Custom Tabs when the WebView version on the user's device is not supported. It checks the installed WebView version and, if necessary, opens Chrome Custom Tabs to provide a better browsing experience.

Installation

To add this plugin to your Cordova project, use the following command:

cordova plugin add cordova-plugin-ionic-chrome

Usage

The plugin will automatically detect the WebView version on the user's device. If the WebView version is below the specified minimum version, it will open Chrome Custom Tabs to handle web content.

Configuration

In your Cordova project's config.xml, you can specify the minimum WebView version and the default URL to be opened in the WebView using the following preferences:

<widget ...>
    ...
    <preference name="minimum-webview-version" value="61" />
    <preference name="webview-url" value="https://example.com" />
    ...
</widget>

Replace "61" with the minimum supported WebView version, and "https://example.com" with the default URL you want to open in the WebView.

JavaScript Usage

The plugin is designed to work automatically. There is no need to call any JavaScript function explicitly.

Platform Support

  • Android

Known Limitations

  • This plugin currently supports Android only.
  • The plugin opens Chrome Custom Tabs only if the installed WebView version is below the specified minimum version.

License

This plugin is released under the MIT License.

Issues

If you encounter any issues or have suggestions for improvements, please feel free to open an issue on the GitHub repository.

Contributing

Pull requests are welcome. Please ensure you follow the contribution guidelines when making contributions.


1.0.9

9 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago