Package 

Class GCMAbstractRegistrationProvider

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected String senderID
    • Method Summary

      Modifier and Type Method Description
      String getSenderID() Returns the Sender ID of the provider, or equivalent.
      void checkServiceAvailability() Is this provider installed on the device?This is the place to check if the service is installed on the device and if its versionmatch the feature we need.
      void checkLibraryAvailability() Is this provider implemented in the app?This is the place to check if the libraries are here at runtime andif the user enabled/disabled your provider.
      • Methods inherited from class com.batch.android.PushRegistrationProvider

        getRegistration, getShortname
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getSenderID

         String getSenderID()

        Returns the Sender ID of the provider, or equivalent. For example: "8122930293"

      • checkServiceAvailability

         void checkServiceAvailability()

        Is this provider installed on the device?This is the place to check if the service is installed on the device and if its versionmatch the feature we need.

        This method will be called when electing the provider for the current start of the app.

        If not available, you should throw a PushRegistrationProviderAvailabilityException withthe human-readable error message.

      • checkLibraryAvailability

         void checkLibraryAvailability()

        Is this provider implemented in the app?This is the place to check if the libraries are here at runtime andif the user enabled/disabled your provider.

        This method will be called right before requesting a push token.

        If not available, you should throw a PushRegistrationProviderAvailabilityException withthe human-readable error message.