You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do not remove any of the steps from the template below. If a step is not applicable to your issue, please leave that step empty.
There are a lot of things that can contribute to things not working. Having a very basic understanding of your environment will help us understand your issue faster!
Then tap on the Back button on the phone, the paywall will disappear, even thought the displayCloseButton: false
Describe the bug
The problem arises when the back button on an Android device is pressed while the paywall is displayed. Instead of maintaining the paywall as expected, it disappears, allowing users to access the app's premium content without subscribing.
Additional context
The text was updated successfully, but these errors were encountered:
Hi @Errechydy, thanks for bringing this up. Unfortunately, we don't yet have a way to override the physical Android back button. What you could do for now is to await the presentPaywallIfNeeded method and then check CustomerInfo for active entitlements. If the user doesn't have an active entitlement, you could call presentPaywallIfNeeded again.
Alternatively, you could use the PaywallView widget and conditionally show it based on active entitlements - docs.
Do not remove any of the steps from the template below. If a step is not applicable to your issue, please leave that step empty.
There are a lot of things that can contribute to things not working. Having a very basic understanding of your environment will help us understand your issue faster!
Environment
flutter doctor
purchases-flutter
:Then tap on the
Back button
on the phone, the paywall will disappear, even thought thedisplayCloseButton: false
Describe the bug
The problem arises when the back button on an Android device is pressed while the paywall is displayed. Instead of maintaining the paywall as expected, it disappears, allowing users to access the app's premium content without subscribing.
Additional context
The text was updated successfully, but these errors were encountered: