HmsPushConfigurationBuilder

HmsPushConfigurationBuilder class is a builder used to provide configuration for Huawei Push Notifications using HMS (Huawei Mobile Services). Use PushConfiguration.hmsPushConfigurationBuilder to create a builder instance. This builder should be used to specify:

  • HMS Device Token.

  • HMS Application Id.

For more extensive information on how to configure in app push notifications for incoming call see Push Notifications section of the online docs.

Functions

Link copied to clipboard
abstract fun applicationId(applicationId: String): HmsPushConfigurationBuilder

Sets the HMS Application Id.

Link copied to clipboard
abstract fun build(): PushConfiguration

Creates the resulting PushConfiguration.

Link copied to clipboard
abstract fun deviceToken(deviceToken: String): HmsPushConfigurationBuilder

Sets the HMS Device Token.