Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paywall only shows if edge-to-edge #5

Open
Harteg opened this issue Oct 13, 2024 · 0 comments
Open

Paywall only shows if edge-to-edge #5

Harteg opened this issue Oct 13, 2024 · 0 comments

Comments

@Harteg
Copy link

Harteg commented Oct 13, 2024

Paywall will not show if AdaptyPaywallView not edge-to-edge. E.g. just a simple bottom margin like this breaks it:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <com.adapty.ui.AdaptyPaywallView
        android:id="@+id/paywall_standard"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_marginBottom="100dp"/>
</RelativeLayout>

According to the docs, you should pass AdaptyPaywallInsets.NONE to showPaywall() but this method seems to have changed in v3.0.0 and no longer receives anything related to insets:

showPaywall(
        viewConfiguration: AdaptyUI.LocalizedViewConfiguration,
        products: List<AdaptyPaywallProduct>?,
        eventListener: AdaptyUiEventListener,
        personalizedOfferResolver: AdaptyUiPersonalizedOfferResolver = AdaptyUiPersonalizedOfferResolver.DEFAULT,
        tagResolver: AdaptyUiTagResolver = AdaptyUiTagResolver.DEFAULT,
        timerResolver: AdaptyUiTimerResolver = AdaptyUiTimerResolver.DEFAULT,
        observerModeHandler: AdaptyUiObserverModeHandler? = null,
    )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant