Provides the implementation for Huawei Mobile Services (HMS) push provider.
Syntax: class HmsPushProvider : PushProvider
| Types | Description |
|---|
| Companion | object Companion |
| Function | Syntax | Description |
|---|
| create | fun create(context: Context): HmsPushProvider | Creates and returns a new instance of HmsPushProvider. |
| Name | Syntax |
|---|
| servicesHelper | open override val servicesHelper: PushServicesHelper |
| Functions | Description |
|---|
| processToken | Processes a received token from the push notification service. |
| register | Registers a token with the push notification service. |
| subscribe | Subscribes to a specific topic for push notifications. It allows the application to receive notifications related to the specified topic. |
| unsubscribe | Unsubscribe from a specific topic for push notifications. It stops the application from receiving notifications related to the specified topic |