1. Using the SDK

1. Using the SDK

1.1 Sending Open Event

If you prefer to use your own handler for incoming push messages, you may need to send open event to dEngage Platform. So you will be able to see whether the message is opened or not. In this case, please use the following sample code to send open event;

  1. Message message = new Message(intent.getExtras()); // dengage push message payload.
    DengageManager.sendOpenEvent(message);

1.2 Setting Your User Contact Key

To set user contact key, please use the following methods. This action requires syncSubscription() function call to notify dEngage Platform.

  1. DengageManager.setContactKey("{user_contact_key}");
    DengageManager.syncSubscription();

1.3 Viewing Logs

By default, the SDK does not show logs. To show logs, Please use the following method;

  1. DengageManager.setLogStatus(true);

1.4 Synching Subscription Values

If you want to change a subscription value at runtime. Please use the syncSubscription() method.

  1. DengageManager.setPermission(true);
    DengageManager.syncSubscription();

    • Related Articles

    • IOS SDK Setup

      Requirements Dengage Integration Key iOS Push Cerificate iOS Device ( you must test on real device for notifications) A mac with latest Xcode Installation Dengage.Framework is available through CocoaPods. To install it, simply add the following line ...
    • D.engage Web SDK Setup

      Requirements D.engage Application Definition Access to your website files D.engage Web SDK provides an interface that handles web push notifications. Optionally, It also provides event tracking functionality for your website. 1. Create D.engage ...
    • Experience Module iOS SDK Integration

      iOS SDK¶ Dengage iOS SDK for sending visitor behavior and rendering product recommendations. Important warning ProductView, Basket Add/Remove, View Basket, Purchase and Click events must match productId. Introduction¶ This tutorial provides a very ...
    • Experience Module Android SDK Integration

      Android SDK¶ Dengage Android SDK for sending visitor behavior and rendering product recommendations. Supports Android 4.4 and higher devices. Important warning ProductView, Basket Add/Remove, View Basket, Purchase and Click events must match ...
    • Where can I see latest SDK version?

      The following link provides where the documentation is available for the SDK version. You can use the following links relevant to the technologies to see the required SDK version. IOS SDK Android SDK Huawei SDK React Native Cordova Flutter