This package has been deprecated

Author message:

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

nativescript-openurl

1.0.2 • Public • Published

NativeScript OpenUrl

** PLEASE NOTE THIS PLUGIN IS NOW DEPRECIATED as of v1.30 of NativeScript. This plugin is NOW part of the Common Core Library. **

A NativeScript module providing basic open url action for Android and iOS. The Location can be: http://, https://, tel://, mailto://, sms, facetime (iOS), etc..

** PLEASE NOTE THIS PLUGIN IS NOW DEPRECIATED as of v1.30 of NativeScript. This plugin is NOW part of the Common Core Library. **

License

This is released under the MIT License, meaning you are free to include this in any type of program -- However for entities that need a support and/or a commercial license please contact me (nathan@master-technology.com).

Installation

Run tns plugin add nativescript-openurl from inside your project's main directory

Usage

To use the openurl module you must first require() it.

var OpenUrl = require( "nativescript-openurl" );

Methods

OpenUrl(Location, <context>);

Parameters
  • Location: Location you want to open in a browser - Can be: http://, https://, tel://, mailto://, sms, facetime (iOS), etc..
  • Context: Android only parameter - Optional, if you don't provide a context it will automatically determine a valid context
  • RETURNS: False if failed to open, true if opening.
// my-page.js
var OpenUrl = require("nativescript-openurl");
OpenUrl("http://www.master-technology.com");

This should open your browser with that location.

The Location can be: http://, https://, tel://, mailto://, sms, facetime (iOS), etc..

Package Sidebar

Install

npm i nativescript-openurl

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • nathanaela