setOnBackgroundMessage abstract method

void setOnBackgroundMessage(
  1. BackgroundMessageHandler handler
)

A method that allows you to set a callback that's called whenever a notification or a data message is received by the device.

Implementation

void setOnBackgroundMessage(BackgroundMessageHandler handler);