Socket
Socket
Sign inDemoInstall

react-native-android-jaalee

Package Overview
Dependencies
452
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-android-jaalee

React Native Beacon Manager android JAALEE


Version published
Maintainers
1
Created

Readme

Source

react-native-android-jaalee

Getting started

$ npm install react-native-android-jaalee --save

Mostly automatic installation

$ react-native link react-native-android-jaalee

Manual installation

Android
  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.jaalee.sdk.RNAndroidJaaleePackage; to the imports at the top of the file
  • Add new RNAndroidJaaleePackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-android-jaalee'
    project(':react-native-android-jaalee').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-android-jaalee/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-android-jaalee')
    

Add this to your AndroidManifest.xml

  1. Open android/app/src/main/AndroidManifest.xml
  • Add <service android:name="com.jaalee.sdk.service.BeaconService" android:exported="false"/> for scanning in your <application android:name=".MainApplication"...
  • Assure you have: `
` ## Featurs - Scanning beacon JAALEE - Call Beacon

Usage

import JaleeBeaconManager from 'react-native-android-jaalee';

// Initialize Connection
JaleeBeaconManager.InitializerConnection();

// Connection Beacon
 JaleeBeaconManager.StartRangingBeacon(uid, majoir, minor) 
 .then(() => {
   console.log('Starting connection');
 })
 .catch(e => {
   console.log('error start connection', e);
 });


 // listing my beacon
 DeviceEventEmitter.addListener('onBeaconJaaleeFound', (event) =>{
   console.log('data ...', event);
   // Object
   // identifier, uid, major, minor, rssi, measuredPower, macAddress, battLevel
 });

// If beacon find run this to Call Beacon
JaleeBeaconManager.callBeaconJalee();

You want to contribute

  • dev.harouna@gmail.com

Author

Harouna Diallo

Keywords

FAQs

Last updated on 14 Sep 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc