1.0.1 • Published 8 years ago

cordova-plugin-openurlext v1.0.1

Weekly downloads
13
License
ISC
Repository
github
Last release
8 years ago

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.