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,
Run the following standard command to add the plug-in to your Cordova app:
cordova plugin add bluedot-plugin
Bluedot plug-in supports iOS and Android platforms. These can be added to your app with the following commands:
cordova platform add ios cordova platform add android
To assist in getting your app up and running as quickly as possible, Javascript function wrappers are provided in the Bluedot plug-in repository at the following location:
<plug-in>/js/bdFunctions.js
These functions provide sample code for the SDK functionality that can be utilised in their current form and expanded upon as the requirements of your app grow. This file can be copied to your app’s Javascript source directory and included in the <head></head>
tags of your app’s index.html
:
<
script
type
=
"text/javascript"
src="<Javascript source directory>/bdFunctions.js"></
script
>
In summary, the functions relate to an HTML page that contains the following:
"statusText"
This text area is updated with the responses from the Bluedot Point SDK."authenticateButton"
This will call the doAuthenticate()
function with the following constants that are set at the top of the bdFunctions.js
file:
username
apiKey
packageName
"logOutButton"
This will call the doLogOut()
function
These functions are representative and should be adjusted for the use of your particular app.
There are some differences between a default Xcode project and the project requirements for an app running Point SDK. In summary:
Bitcode
must be set to NO
in Build Settings..0
in General.- (void)applicationWillEnterForeground:(UIApplication *)application { // This method implementation must be present in AppDelegate } - (void)applicationDidEnterBackground:(UIApplication *)application { // This method implementation must be present in AppDelegate } - (void)applicationWillResignActive:(UIApplication *)application { // For iOS10 and above, this method implementation must be present in AppDelegate }