1.0.0 • Published 11 months ago

cordova-plugin-default-browser v1.0.0

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

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!