-
- All Implemented Interfaces:
-
com.batch.android.PushRegistrationProvider
public class GCMIidRegistrationProvider extends GCMAbstractRegistrationProvider
-
-
Method Summary
Modifier and Type Method Description StringgetShortname()Returns the short name of the provider. voidcheckLibraryAvailability()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. StringgetRegistration()Returns the registration if possible.Some providers might not have it right away. -
-
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.
-
-
-
-