[android-components](../../index.md) / [mozilla.components.concept.engine.webpush](../index.md) / [WebPushHandler](index.md) / [onSubscriptionChanged](./on-subscription-changed.md)

# onSubscriptionChanged

`open fun onSubscriptionChanged(subscription: `[`WebPushSubscription`](../-web-push-subscription/index.md)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/concept/engine/src/main/java/mozilla/components/concept/engine/webpush/WebPush.kt#L29)

Invoked when a subscription has now changed/expired.

This will be deprecated after GeckoView 75; see: https://github.com/mozilla-mobile/android-components/issues/5913

`open fun onSubscriptionChanged(scope: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/concept/engine/src/main/java/mozilla/components/concept/engine/webpush/WebPush.kt#L34)

Invoked when a subscription has now changed/expired.

