unsubscribeWithHuaweiNotifications

fun unsubscribeWithHuaweiNotifications(deviceId: String, callback: OnComplete? = null)

Unsubscribes from NotificationEvents on the current data node path, so that no longer HMS (Huawei Mobile Service) push mobile notifications are sent to the given deviceId. This operation requires to be authenticated.

Parameters

deviceId

The device identifier where to stop sending notifications (to be retrieved using the HMS Push Kit libraries).

callback

The callback called when the unsubscription is acknowledged by the server.