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,
To get the SDK loaded and running, you will need to:
In the root directory of your project, run
$ cordova plugin add @bluedot-innovation/cordova-plugin
In the root directory of your project, run
$ cordova platform add ios $ cordova run ios
In the root directory of your project, run
$ cordova platform add android $ cordova run android
Now that the project has been set up, you can import and initialize the Bluedot Cordova package from your App:
The initializeWithProjectId
method expects 3 parameters:
initializationSuccessful | Function | The callback will be executed when the SDK is successfully initialized. |
initializationFailed | Function | The callback will be executed when the SDK did not initialize. |
projectId | String | The project Id you’re going to use. This can be found in the Canvas. |
function doInitialize() { // Initialize SDK io.bluedot.cordova.plugin.initializeWithProjectId( function () { console.log("Initialization Successful") }, function (error) { console.log("Initialization Failed with error: " + error) }, "YOUR_PROJECT_ID"); }
You can use the isInitialized
method to check the status of the SDK. It will return a boolean
value.
function doIsInitialized() { io.bluedot.cordova.plugin.isInitialized( function (isInitialized) { console.log("Is SDK Initialized: " + isInitialized) } ); }
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.