nativescript-beacon-ins
TypeScript icon, indicating that this package has built-in type declarations

1.2.6 • Public • Published

INS Beacon Scanner for NativeScript

The node module for the INS Beacon Scanner Plugin for NativeScript.

Getting started

  • Create a new NativeScript application

      tns create MyApp
    

    or use an existing one.

  • Add the Beacon Plugin (from NPM). This will install the Beacon plugin in the node_modules folder, in the root of the project. When adding a new platform (or using an existing one) the plugin will be added there as well. Go to the application folder and add the beacon plugin:

      tns plugin add nativescript-beacon-ins
    

Android

API

	// Get reference to the push plugin module.
	var beaconPlugin = require('nativescript-beacon-ins');
  • startScanBeacon - use to scan bluetooth beacon ins device

startScanBeacon(settings, successCallback, errorCallback)

	var settings = {
		// iOS settings
		timeoutAfter: 15, // scan bluetooth timeout
		baseURL: 'Your config URL',
		port: 'port',
		orgId: 'orgId',
		inspectionId: 'inspectionId'
	};


	beaconPlugin.startScanBeacon(settings,
		// Success callback
		function(token) {
			alert('scan successfully');
		},
		// Error Callback
		function(error){
			alert(error.message);
		}
	);

Readme

Keywords

none

Package Sidebar

Install

npm i nativescript-beacon-ins

Weekly Downloads

0

Version

1.2.6

License

Apache-2.0

Unpacked Size

2.52 MB

Total Files

38

Last publish

Collaborators

  • vanphuc06t1