Skip to content
This repository was archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Close #5913: Remove deprecated WebPushHandler.onSubscriptionChanged API
Browse files Browse the repository at this point in the history
  • Loading branch information
jonalmeida committed Apr 7, 2020
1 parent 2f4dba9 commit 93580f3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@ interface WebPushHandler {
*/
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.
*/
Expand Down
2 changes: 1 addition & 1 deletion components/feature/push/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ feature.shutdown()
// To receive the subscription info for all the subscription changes.
feature.register(object : AutoPushFeature.Observer {
override fun onSubscriptionChanged(subscription: AutoPushSubscription) {
override fun onSubscriptionChanged(scope: PushScope) {
// Handle subscription info here.
}
})
Expand Down

0 comments on commit 93580f3

Please sign in to comment.