cordova-plugin-default-browser

1.0.0 • Public • Published

Cordova Plugin Default Browser

Cordova plugin for opening a URL in the users default browser. This plugin only works in Electron apps.

Installation

cordova plugin add cordova-plugin-default-browser

Usage

Open URL in default browser

cordova.plugins.defaultBrowser.open(url);

Parameters:

  • url: The URL to open in the default browser. Type: string. Required.

NOTE: The URL must contain the protocol (e.g. http:// or https://). Otherwise an error will be thrown. This is for security reasons.

Supported Platforms

  • Electron

License

MIT License

Credits

  • The plugin is based on the following tutorial created by Devadri. Thanks for the great work!

Package Sidebar

Install

npm i cordova-plugin-default-browser

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

4.29 kB

Total Files

8

Last publish

Collaborators

  • rodrisanchez12