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

    • 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
    • How can I implement web SDK?

      Execute the following steps to implement web SDK: Create a web application on Admin Panel. Then, the system will provide a JavaScript code and service worker file. Add the JavaScript code to your website's source code (You must put it into <head> ...
    • We have separate domain for our mobile site should we add the same SDK?

      Definitely, we should use different SDKs for each site. If the web URL is different, we should create different web applications for mobile and websites.
    • 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 ...