1.2.6 • Published 5 years ago
nativescript-beacon-ins v1.2.6
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);
}
);
1.2.6
5 years ago
1.2.5
6 years ago
1.2.4
6 years ago
1.2.3
6 years ago
1.2.2
6 years ago
1.2.1
6 years ago
1.2.0
6 years ago
1.1.9
6 years ago
1.1.8
6 years ago
1.1.7
6 years ago
1.1.6
6 years ago
1.1.5
6 years ago
1.1.4
6 years ago
1.1.3
6 years ago
1.1.2
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.9
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago