android-components / mozilla.components.service.fxa / FxaDeviceConstellation / setDevicePushSubscriptionAsync

setDevicePushSubscriptionAsync

fun setDevicePushSubscriptionAsync(subscription: DevicePushSubscription): Deferred<Boolean> (source)

Overrides DeviceConstellation.setDevicePushSubscriptionAsync

Set a DevicePushSubscription for the current device.

Parameters

subscription - A new DevicePushSubscription.

Return A Deferred that will be resolved with a success flag once operation is complete.