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,
If your use case requires configuration changes (Eg: changes to your Zone or geofence setup) to be synced to your app in real-time – rather than waiting for the next successful SDK rule download (link to RD explanation). This documentation will guide you through activating Bluedot’s Real-time Data Sync along with Google Firebase Cloud Messaging.
To add Firebase to your app, you will need to create a Firebase project and a Firebase configuration file. This can be achieved by the steps documented here.
Information on setting the Firebase Server key for your Canvas project is here.
To make sure that push notification will be delivered to your applications which is using specific Bluedot Project. Your client app needs to subscribe to the topic with Bluedot Project ID. This is achieved using the code below. It is recommended to add the line to the GeoTriggeringService start success callback.
GeoTriggeringService.builder() .notificationId(123) .notification(createNotification(SERVICE_TITLE, SERVICE_CONTENT, true, this)) .start(this, error -> { if (error != null) { //log error return; } //If Start GeoTrigger is success then add this line FirebaseMessaging.getInstance().subscribeToTopic(projectId); });
The last step is to provide the received push notification’s data object to Bluedot’s notifyPushUpdate method, to process the push and trigger rule set refresh. This method is to be placed inside the onMessageReceived
callback of your service that extends FirebaseMessagingService, demonstrated below.
public class MyFirebaseMessagingService extends FirebaseMessagingService { @Override public void onMessageReceived(RemoteMessage remoteMessage) { super.onMessageReceived(remoteMessage); //Add these lines ServiceManager serviceManager = ServiceManager.getInstance(this); serviceManager.notifyPushUpdate(remoteMessage.getData()); ... } }
Disclaimer: Bluedot Point SDK will only utilize the data of push notifications sent containing a unique Bluedot identifier, and will ignore all other push notifications.