This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

cordova-plugin-openurlext

1.0.1 • Public • Published

OpenUrlExt

Open a specific URL in the external browser of the hosting OS.

Installation

cordova plugin add https://github.com/PaoloMessina/OpenUrlExt

License

This plugin is released under the MIT license

API

open

OpenUrlExt.open(url, onSuccess, onFailure);

Arguments:

  • url: The url too open, will be encoded.
  • onSuccess: function () {...} Callback for successful scan.
  • onFailure: function () {...} Callback for cancelled scan or error.

Return:

  • success() Successful opening
  • error() Error on opening

Example:

```javascript
{
    OpenUrlExt.open(urlString,
    				function(){ 
    					console.log("ok");
    				}, 
    				function(){ 
    					console.log("ko");
    				});
}
```

Quirks:

  • Android: The plugin is not native but a simple call to javascript that just working well.

Package Sidebar

Install

npm i cordova-plugin-openurlext

Weekly Downloads

10

Version

1.0.1

License

ISC

Last publish

Collaborators

  • serdar_de