Package 

Interface INotificationLifecycleCallback

    • Method Detail

      • canReceiveNotification

         abstract Boolean canReceiveNotification(JSONObject jsonPayload)

        Called when a OneSignal notification bundle has been received by the SDK. This callback has the option to indicate to the bundle processor whether it should continue processing the bundle, or allow the callback itself to handle the bundle. The first callback to "claim" the bundle gets it.

        Parameters:
        jsonPayload - The bundle that has been received.