Package 

Class FCMAbstractRegistrationProvider

    • 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 loadProjectInformation()
      String getGCPProjectID() Returns the GCP Project ID.
      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.
      static boolean isFirebaseMessagingPresent()
      • 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"Also known as the GCP Project Number

      • getGCPProjectID

        @Nullable() String getGCPProjectID()

        Returns the GCP Project ID. For example "batch_sample". Not to be confused with Sender ID,which is the Project Number.Only for FCM.

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