iOS SDK 15.6.7,
Android SDK 15.5.3,
Hello Screen Dynamic States,
Bluedot Cordova plugin 4.0.1,
Bluedot Xamarin Android wrapper 15.5.2,
Bluedot Xamarin iOS wrapper 15.6.6,
Bluedot React Native wrapper 2.3.0,
build.gradle
file for Android$ npm install bluedot-react-native --save
$ cd ios $ pod install
Make sure to update the info.plist
file within the ios folder. For further information please refer to the section Update your info.plist
file in the iOS Quick Start Guide
build.gradle
fileallprojects { repositories { ... // ADD IT HERE maven { url "https://jitpack.io" } } }
$ npx jetify
Now that the project has been set up, you can import and initialize the Bluedot React Native package from your App:
The initialize
method expects 3 parameters:
Parameter
|
Type
|
Description
|
projectId
|
String
|
The project Id you’re going to use. This can be found in the Canvas.
|
onSuccess callback
|
Function
|
Callback that will be executed when the SDK is successfully initialized
|
onError callback
|
Function
|
Callback will be executed when the SDK did not initialize
|
import React from 'react' import BluedotPointSdk from 'bluedot-react-native'; export default function App() { React.useEffect(() => { BluedotPointSdk.initialize( "Your_bluedot_project_id", () => console.log("On Success Callback"), (error) => console.error("On Error Callback", error) ) }, []) return (...) }
You can use the isInitialized
method to check the status of the SDK. It will return a boolean value.
BluedotPointSdk.isInitialized() .then(status => console.log("Is Bluedot SDk initialized?", status) .catch(error => console.error("Error", error)
At this point, you’ve got the basics together, but to start receiving location events from the SDK, your need to use our Geo-triggering and/or Tempo features.