Package 

Class GCMIidRegistrationProvider

    • Method Summary

      Modifier and Type Method Description
      String getShortname() Returns the short name of the provider.
      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.
      String getRegistration() Returns the registration if possible.Some providers might not have it right away.
      • Methods inherited from class com.batch.android.push.GCMAbstractRegistrationProvider

        checkServiceAvailability, getAdsIdentifierProvider, getSenderID
      • Methods inherited from class java.lang.Object

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

      • getShortname

         String getShortname()

        Returns the short name of the provider. For example: "FCM".

      • 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.

      • getRegistration

        @Nullable() String getRegistration()

        Returns the registration if possible.Some providers might not have it right away. Return null in these cases.