Commit 3e533920 authored by MozLando's avatar MozLando
Browse files

Merge #6569



6569: Close #5913: Remove deprecated WebPushHandler.onSubscriptionChanged API r=pocmo a=jonalmeida
Co-authored-by: default avatarJonathan Almeida <jalmeida@mozilla.com>
parents 9c04b984 93580f34
...@@ -21,13 +21,6 @@ interface WebPushHandler { ...@@ -21,13 +21,6 @@ interface WebPushHandler {
*/ */
fun onPushMessage(scope: String, message: ByteArray?) fun onPushMessage(scope: String, message: ByteArray?)
/**
* 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
*/
fun onSubscriptionChanged(subscription: WebPushSubscription) = Unit
/** /**
* Invoked when a subscription has now changed/expired. * Invoked when a subscription has now changed/expired.
*/ */
......
...@@ -38,7 +38,7 @@ feature.shutdown() ...@@ -38,7 +38,7 @@ feature.shutdown()
// To receive the subscription info for all the subscription changes. // To receive the subscription info for all the subscription changes.
feature.register(object : AutoPushFeature.Observer { feature.register(object : AutoPushFeature.Observer {
override fun onSubscriptionChanged(subscription: AutoPushSubscription) { override fun onSubscriptionChanged(scope: PushScope) {
// Handle subscription info here. // Handle subscription info here.
} }
}) })
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment