
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
bluedot-react-native
Advanced tools
Bluedot Point SDK React Native SDK; integrates the Android and iOS Point SDK libraries
$ npm install bluedot-react-native --save
$ react-native link bluedot-react-native
$ cd ios
$ pod install
build.gradle
allprojects {
repositories {
...
// ADD IT HERE
maven {
url "https://jitpack.io"
}
}
}
$ npx jetify
import BluedotPointSdk from 'bluedot-react-native';
componentDidMount = async () => {
// Before starting the Bluedot Point SDK ask for Location Permissions
// ...
const channelId = 'Bluedot React Native'
const channelName = 'Bluedot React Native'
const title = 'Bluedot Foreground Service'
const content = "This app is running a foreground service using location services"
// Foreground Service for Android to improve trigger rate - iOS will ignore this.
BluedotPointSdk.setForegroundNotification(channelId, channelName, title, content, true)
// If you would like to add custom event meta data
BluedotPointSdk.setCustomEventMetaData({ userId: 'user_id_goes_here' })
// Start Bluedot SDK
BluedotPointSdk.authenticate('your_application_project_id', '<Always|WhenInUse>', () => console.log("On success"), () => console.log("On fail"))
BluedotPointSdk.on('zoneInfoUpdate', (event) => {
// ...
})
BluedotPointSdk.on('checkedIntoFence', (event) => {
// ...
})
BluedotPointSdk.on('checkedOutFromFence', (event) => {
// ...
})
BluedotPointSdk.on('checkedIntoBeacon', (event) => {
// ...
})
BluedotPointSdk.on('checkedOutFromBeacon', (event) => {
// ...
})
BluedotPointSdk.on('startRequiringUserInterventionForBluetooth', (event) => {
// ...
})
BluedotPointSdk.on('stopRequiringUserInterventionForBluetooth', (event) => {
// ...
})
BluedotPointSdk.on('startRequiringUserInterventionForLocationServices', (event) => {
// ...
})
BluedotPointSdk.on('stopRequiringUserInterventionForLocationServices', (event) => {
// ...
})
}
{
"zoneInfos": [
{
"ID": "zone-UUID-here",
"name": "Your zone name here"
}
//...
]
}
{
"zoneInfo": {
"ID": "zone-UUID-here",
"name": "Your zone name here"
},
"fenceInfo": {
"ID": "fence-UUID-here",
"name": "Your fence name here"
},
"locationInfo": {
"unixDate": "Timestamp of triggering location update",
"latitude": "Latitude of triggering location update",
"longitude": "Longitude of triggering location update",
"bearing": "Bearing of triggering location update (if available)",
"speed": "speed of triggering location update (if available)",
},
"customData": {
"custom-field-name": "Custom zone data field value"
},
"willCheckout": false // True if the zone has checkout enabled.
}
{
"zoneInfo": {
"ID": "zone-UUID-here",
"name": "Your zone name here"
},
"fenceInfo": {
"ID": "fence-UUID-here",
"name": "Your fence name here"
},
"customData": {
"custom-field-name": "Custom zone data field value"
},
"dwellTime": 5 // Number of minutes the device dwelled in the zone
}
{
"zoneInfo": {
"ID": "zone-UUID-here",
"name": "Your zone name here"
},
"beaconInfo": {
"ID": "zone-UUID-here",
"name": "Your zone name here",
"macAddress": "AA:BB:CC:DD:EE:FF", // Mac address here
"proximityUuid": "beacon-UUID-here",
"major": 1, // As set on backend
"minor": 2, // As set on backend
"latitude": "Latitude of beacon",
"longitude": "Longitude of beacon",
},
"locationInfo": {
"unixDate": "Timestamp of triggering location update",
"latitude": "Latitude of triggering location update",
"longitude": "Longitude of triggering location update",
"bearing": "Bearing of triggering location update (if available)",
"speed": "speed of triggering location update (if available)",
},
"customData": {
"custom-field-name": "Custom zone data field value"
},
"willCheckout": false // True if the zone has checkout enabled.
}
{
"zoneInfo": {
"ID": "zone-UUID-here",
"name": "Your zone name here"
},
"beaconInfo": {
"ID": "zone-UUID-here",
"name": "Your zone name here",
"macAddress": "AA:BB:CC:DD:EE:FF", // Mac address here
"proximityUuid": "beacon-UUID-here",
"major": 1, // As set on backend
"minor": 2, // As set on backend
"latitude": "Latitude of beacon",
"longitude": "Longitude of beacon",
},
"locationInfo": {
"unixDate": "Timestamp of triggering location update",
"latitude": "Latitude of triggering location update",
"longitude": "Longitude of triggering location update",
"bearing": "Bearing of triggering location update (if available)",
"speed": "speed of triggering location update (if available)",
},
"customData": {
"custom-field-name": "Custom zone data field value"
},
"dwellTime": 5 // Number of minutes the device dwelled in the zone
}
{}
{}
{
"authorizationStatus": "denied" // Or: restricted, notDetermined, always, whenInUse, unknown
}
{
"authorizationStatus": "denied" // Or: restricted, notDetermined, always, whenInUse, unknown
}
FAQs
Bluedot Point SDK React Native SDK; integrates the Android and iOS Point SDK libraries
The npm package bluedot-react-native receives a total of 405 weekly downloads. As such, bluedot-react-native popularity was classified as not popular.
We found that bluedot-react-native demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
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.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.