handleOpenLog method

Prev Next

This method allows you to log when a push notification is opened. You should use this method only if you build and manage the push notifications yourself and need to track when they are opened.

  • You should not use this method unless you are handling your notifications and need to track when a push notification is opened.
  • If you are using the handleFCMNotification or handleHMSNotification methods, you should not use this method.
  • This method only tracks analytics for Insider-related push notifications. Using this method for non-Insider push notifications will not result in any event logging.
ParameterDescriptionData Type
messageRemoteMessageThe payload from Firebase Cloud Messaging (FCM) that the user opened

Method Signature

public void handleOpenLog(RemoteMessage message)

Method Example

Insider.Instance.handleOpenLog(message);

This method works with push notifications built manually using the Firebase Cloud Messaging (FCM) service. The handleOpenLog method logs the event using the provided push notification payload and triggers the appropriate event logging for further analysis.