HmsPushProvider

HMS push provider implementation.

Provides the implementation for Huawei Mobile Services (HMS) push provider.

Syntax: class HmsPushProvider : PushProvider

Types

TypesDescription
Companionobject Companion

Companion Functions

FunctionSyntaxDescription
createfun create(context: Context): HmsPushProviderCreates and returns a new instance of HmsPushProvider.

Properties

NameSyntax
servicesHelperopen override val servicesHelper: PushServicesHelper

Functions

FunctionsDescription
processTokenProcesses a received token from the push notification service.
registerRegisters a token with the push notification service.
subscribeSubscribes to a specific topic for push notifications. It allows the application to receive notifications related to the specified topic.
unsubscribeUnsubscribe from a specific topic for push notifications. It stops the application from receiving notifications related to the specified topic