Package com.swrve.sdk

Interface SwrvePushNotificationListener


  • public interface SwrvePushNotificationListener
    Implement this interface to be notified of any Swrve push notification to your app.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onPushNotification​(org.json.JSONObject payload)
      This method will be called when a push notification is received by your app, after the user has reacted to it.
    • Method Detail

      • onPushNotification

        void onPushNotification​(org.json.JSONObject payload)
        This method will be called when a push notification is received by your app, after the user has reacted to it. This is executed in a broadcastreceiver and should not perform any long-running operations.
        Parameters:
        payload - push notification information including custom payloads.