feat(MSDK-3781): Add notifySubscriptionLapsed to Flutter bridge - #213
Open
asadraza-usercentrics wants to merge 1 commit into
Conversation
asadraza-usercentrics
added this pull request to stack #214
September 15, 2026 16:10
Exposes the native SDK's subscription-lapse API through the Flutter bridge on Android and iOS. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
asadraza-usercentrics
force-pushed
the
feat/MSDK-3781-notify-subscription-lapsed-flutter
branch
from
September 17, 2026 10:09
c4213cf to
d866c8d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a public notifySubscriptionLapsed() API to the Flutter SDK, bridging the native mobile-sdk's Consent-or-Pay subscription-lapsed signal to both Android and iOS.
Calling it notifies the native SDK that a user's paid subscription has lapsed, which redirects them back to the consent banner.
Changes
Added notifySubscriptionLapsed() to the platform interface and its Android/iOS bridge implementations.
Added success/error callback handling matching the existing notifySubscribeSuccess/notifyLoginSuccess pattern.
Testing
Verified manually on both platforms against a locally-published native SDK build:
notifySubscriptionLapsed — confirmed success flow and redirect back to the first-layer consent banner.
Confirmed no regression to existing Consent-or-Pay callbacks (subscribe/login) or the Deny-All gate redirect.