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

[Android] AdaptyUI Close button not working #138

Closed
gaucidaniel opened this issue Dec 23, 2024 · 25 comments
Closed

[Android] AdaptyUI Close button not working #138

gaucidaniel opened this issue Dec 23, 2024 · 25 comments

Comments

@gaucidaniel
Copy link

gaucidaniel commented Dec 23, 2024

When pressing the close button on the paywall page on Android, the AdaptyUI paywall does not dismiss. In some cases, this also happens on iOS but it is not as easily reproducible. We have also had reports of the paywall not dismissing after a successfull purchase, but I have not been able to confirm if it's the same error or not. The following error is thrown on the console:

W/FlutterJNI(10542): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: flutter.adapty.com/adapty. Response ID: 4 (ID increments with every press)

This is happening in release mode, using Adapty 3.2.5, but was reproducible on older versions too.

@x401om
Copy link
Collaborator

x401om commented Dec 23, 2024

Hi @gaucidaniel! Thank you for the issue. Please provide your flutter doctor output

@gaucidaniel
Copy link
Author

Thanks for replying @x401om! Here you go:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.5, on macOS 15.1 24B83 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.2)
[✓] VS Code (version 1.96.0)
[✓] Connected device (6 available)
[✓] Network resources

• No issues found!

@agladyshev
Copy link

I have a similar issue in my app with adapty_flutter 3.2.4. So far, I encountered this issue only on Android devices.
During testing, the paywall occasionally freezes after purchase and becomes unresponsive. The close button also does not work to dismiss it.
The issue surfaced during production testing today. After a successful purchase on an Android device, the paywall became unresponsive. I had to forcefully restart the app.
Haven't got any useful logs yet, I'll post if I catch some.

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.3, on macOS 15.1.1 24B91 darwin-arm64, locale en-GE)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google
    Chrome.app/Contents/MacOS/Google Chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Android Studio (version 2024.2)
[✓] VS Code (version 1.96.2)
[✓] Connected device (3 available)
[✓] Network resources

@Brechard
Copy link

Brechard commented Dec 31, 2024

I am having a similar issue (tried adapty_flutter: ^3.2.3 and adapty_flutter: ^3.1.0):

  • it works on an old iPad (5th generation) from 2017 and iOS 16.7.10 (both when running from Android Studio and from TestFlight build.
  • it does not work on:
    • a pixel 8 with Android 15
    • on an iPad Air (5th generation) from 2022 with iOS 18.2.

Same code, same build, not working.

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.27.1, on macOS 15.1 24B83 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.2)
[✓] VS Code (version 1.92.2)
[✓] Connected device (5 available)
[✓] Network resources

• No issues found!

@x401om
Copy link
Collaborator

x401om commented Dec 31, 2024

Hello! @agladyshev, @Brechard, could you please provide us with verbose logs from the devices when you encounter the issue with the paywalls? Also, I am curious: is there a chance that a hot restart occurred before you experienced this issue?

@Brechard
Copy link

@x401om To ensure it is not a problem of hot restarts, I am uninstalling the app before executing it to have a clean install and run. Here are the logs (I have filtered them so that only those that have Adapty on it are shown):

iPad Air (5th generation) from 2022 with iOS 18.2:

flutter: [AdaptyFlutter i3.2.3] - VERBOSE: [yOEY] --> Adapty.get_paywall(), Args: {"placement_id":"onboarding","locale":"fr","fetch_policy":{"type":"reload_revalidating_cache_data"},"load_timeout":5.0}
flutter: [AdaptyFlutter i3.2.3] - VERBOSE: [yOEY] <-- Adapty.get_paywall(), Result: {"success":{"variation_id":"87b4faa5-2a6e-4a16-90b7-9eb5033600b9","response_created_at":1735651180106,"developer_id":"onboarding","paywall_name":"Onboarding 2025.1.A","remote_config":{"lang":"en","data":"{\"header_text\":\"Success is not random\"}"},"revision":1,"products":[{"vendor_product_id":"yourstep_subscription_yearly","adapty_product_id":"d60b1a94-09d5-4d3a-8521-7713ab5425f2"},{"adapty_product_id":"011cec8c-48f4-4351-8d32-25ba296291f1","vendor_product_id":"yourstep_subscription_monthly"},{"vendor_product_id":"yourstep_lifetime","adapty_product_id":"e9215f82-de6a-4898-a373-332352907469"}],"ab_test_name":"Onboarding 2025.1.A","paywall_builder":{"paywall_builder_id":"255868b6-0183-4f7c-801f-c78f07ae6265","lang":"en"},"paywall_id":"bfddcd9b-3895-4e1b-b99d-f823d747306e"}}
flutter: [AdaptyFlutter i3.2.3] - VERBOSE: [yOEY] <-- Adapty.get_paywall(), Result: {success: {variation_id: 87b4faa5-2a6e-4a16-90b7-9eb5033600b9, response_created_at: 1735651180106, developer_id: onboarding, paywall_name: Onboarding 2025.1.A, remote_config: {lang: en, data: {"header_text":"Success is not random"}}, revision: 1, products: [{vendor_product_id: yourstep_subscription_yearly, adapty_product_id: d60b1a94-09d5-4d3a-8521-7713ab5425f2}, {adapty_product_id: 011cec8c-48f4-4351-8d32-25ba296291f1, vendor_product_id: yourstep_subscription_monthly}, {vendor_product_id: yourstep_lifetime, adapty_product_id: e9215f82-de6a-4898-a373-332352907469}], ab_test_name: Onboarding 2025.1.A, paywall_builder: {paywall_builder_id: 255868b6-0183-4f7c-801f-c78f07ae6265, lang: en}, paywall_id: bfddcd9b-3895-4e1b-b99d-f823d747306e}}
flutter: [AdaptyFlutter i3.2.3] - VERBOSE: [yOEY] <-- Adapty.get_paywall(), Success Object: (placementId: onboarding, instanceIdentity: bfddcd9b-3895-4e1b-b99d-f823d747306e, name: Onboarding 2025.1.A, abTestName: Onboarding 2025.1.A, variationId: 87b4faa5-2a6e-4a16-90b7-9eb5033600b9, revision: 1, hasViewConfiguration: true, remoteConfig: Instance of 'AdaptyPaywallRemoteConfig', _products: [(vendorId: yourstep_subscription_yearly, _adaptyProductId: d60b1a94-09d5-4d3a-8521-7713ab5425f2, promotionalOfferId: null, winBackOfferId: null, basePlanId: null, offerId: null), (vendorId: yourstep_subscription_monthly, _adaptyProductId: 011cec8c-48f4-4351-8d32-25ba296291f1, promotionalOfferId: null, winBackOfferId: null, basePlanId: null, offerId: null), (vendorId: yourstep_lifetime, _adaptyProductId: e9215f82-de6a-4898-a373-332352907469, promotionalOfferId: null, winBackOfferId: null, basePlanId: null, offerId: null)], _payloadData: null, _version: 1735651180106)
flutter: [AdaptyFlutter i3.2.3] - VERBOSE: [Xga9] --> Adapty.adapty_ui_create_view(), Args: {"paywall":{"developer_id":"onboarding","paywall_id":"bfddcd9b-3895-4e1b-b99d-f823d747306e","paywall_name":"Onboarding 2025.1.A","ab_test_name":"Onboarding 2025.1.A","variation_id":"87b4faa5-2a6e-4a16-90b7-9eb5033600b9","revision":1,"remote_config":{"lang":"en","data":"{\"header_text\":\"Success is not random\"}"},"paywall_builder":{"paywall_builder_id":"255868b6-0183-4f7c-801f-c78f07ae6265","lang":"en"},"products":[{"vendor_product_id":"yourstep_subscription_yearly","adapty_product_id":"d60b1a94-09d5-4d3a-8521-7713ab5425f2"},{"vendor_product_id":"yourstep_subscription_monthly","adapty_product_id":"011cec8c-48f4-4351-8d32-25ba296291f1"},{"vendor_product_id":"yourstep_lifetime","adapty_product_id":"e9215f82-de6a-4898-a373-332352907469"}],"response_created_at":1735651180106},"preload_products":true}
flutter: [AdaptyFlutter i3.2.3] - VERBOSE: [Xga9] <-- Adapty.adapty_ui_create_view(), Result: {"success":{"id":"BD59EC7D-5355-462D-A245-F26BB115CB71","paywall_variation_id":"87b4faa5-2a6e-4a16-90b7-9eb5033600b9","placement_id":"onboarding"}}
flutter: [AdaptyFlutter i3.2.3] - VERBOSE: [Xga9] <-- Adapty.adapty_ui_create_view(), Result: {success: {id: BD59EC7D-5355-462D-A245-F26BB115CB71, paywall_variation_id: 87b4faa5-2a6e-4a16-90b7-9eb5033600b9, placement_id: onboarding}}
flutter: [AdaptyFlutter i3.2.3] - VERBOSE: [Xga9] <-- Adapty.adapty_ui_create_view(), Success Object: (id: BD59EC7D-5355-462D-A245-F26BB115CB71, placementId: onboarding, paywallVariationId: 87b4faa5-2a6e-4a16-90b7-9eb5033600b9)
flutter: [AdaptyFlutter i3.2.3] - VERBOSE: [RcWJ] --> Adapty.adapty_ui_present_view(), Args: {"id":"BD59EC7D-5355-462D-A245-F26BB115CB71"}
flutter: [AdaptyFlutter i3.2.3] - VERBOSE: [RcWJ] <-- Adapty.adapty_ui_present_view(), Result: {"success":true}
flutter: [AdaptyFlutter i3.2.3] - VERBOSE: [RcWJ] <-- Adapty.adapty_ui_present_view(), Result: {success: true}
flutter: [AdaptyFlutter i3.2.3] - VERBOSE: [RcWJ] <-- Adapty.adapty_ui_present_view(), Success Object: null

Pixel 8 with Android 15:

W/Adapty_v3.1.1(23866): WARN: Offer yourstep-subscription-yearly-free-trial was not found for the base plan yourstep-subscription-yearly-base for the product yourstep_subscription_yearly
I/flutter (23866): [AdaptyFlutter a3.2.3] - VERBOSE: [q7qn] <-- Adapty.adapty_ui_create_view(), Result: {"success":{"id":"5997dec0-0525-4219-a50d-dc54864ac3e7","paywall_variation_id":"87b4faa5-2a6e-4a16-90b7-9eb5033600b9","placement_id":"onboarding"}}
I/flutter (23866): [AdaptyFlutter a3.2.3] - VERBOSE: [q7qn] <-- Adapty.adapty_ui_create_view(), Result: {success: {id: 5997dec0-0525-4219-a50d-dc54864ac3e7, paywall_variation_id: 87b4faa5-2a6e-4a16-90b7-9eb5033600b9, placement_id: onboarding}}
I/flutter (23866): [AdaptyFlutter a3.2.3] - VERBOSE: [q7qn] <-- Adapty.adapty_ui_create_view(), Success Object: (id: 5997dec0-0525-4219-a50d-dc54864ac3e7, placementId: onboarding, paywallVariationId: 87b4faa5-2a6e-4a16-90b7-9eb5033600b9)
V/Adapty_v3.1.1(23866): VERBOSE: UI v3.1.1: #AdaptyMediaCache# downloaded media "...6a2142.png"
V/Adapty_v3.1.1(23866): VERBOSE: UI v3.1.1: #AdaptyMediaCache# saving media "...6a2142.png"
V/Adapty_v3.1.1(23866): VERBOSE: UI v3.1.1: #AdaptyMediaCache# saved media "...6a2142.png"
I/flutter (23866): [AdaptyFlutter a3.2.3] - VERBOSE: [sxy7] --> Adapty.adapty_ui_present_view(), Args: {"id":"5997dec0-0525-4219-a50d-dc54864ac3e7"}
I/flutter (23866): [AdaptyFlutter a3.2.3] - VERBOSE: [sxy7] <-- Adapty.adapty_ui_present_view(), Result: {"success":"true"}
I/flutter (23866): [AdaptyFlutter a3.2.3] - VERBOSE: [sxy7] <-- Adapty.adapty_ui_present_view(), Result: {success: true}
I/flutter (23866): [AdaptyFlutter a3.2.3] - VERBOSE: [sxy7] <-- Adapty.adapty_ui_present_view(), Success Object: null
D/OneSignal(23866): [main] ApplicationService.onActivityCreated(1,APP_OPEN): com.adapty.internal.crossplatform.ui.AdaptyUiActivity@5ed78e5
D/OneSignal(23866): [main] ApplicationService.onActivityStarted(1,APP_OPEN): com.adapty.internal.crossplatform.ui.AdaptyUiActivity@5ed78e5
D/OneSignal(23866): [main] ApplicationService: current activity=com.adapty.internal.crossplatform.ui.AdaptyUiActivity@5ed78e5
D/OneSignal(23866): [main] ApplicationService.onActivityResumed(2,APP_OPEN): com.adapty.internal.crossplatform.ui.AdaptyUiActivity@5ed78e5
V/Adapty_v3.1.1(23866): VERBOSE: UI v3.1.1: AdaptyPaywallView (3681839) onAttachedToWindow
5
V/Adapty_v3.1.1(23866): VERBOSE: UI v3.1.1: #AdaptyMediaCache# requesting media "...6a2142.png"
2
V/Adapty_v3.1.1(23866): VERBOSE: UI v3.1.1: #AdaptyMediaCache# media "...6a2142.png" retrieved from cache
2
V/Adapty_v3.1.1(23866): VERBOSE: UI v3.1.1: #AdaptyMediaCache# media "...6a2142.png" retrieved from cache
V/Adapty_v3.1.1(23866): VERBOSE: UI v3.1.1: #AdaptyMediaCache# media "...6a2142.png" retrieved from cache
V/Adapty_v3.1.1(23866): VERBOSE: UI v3.1.1: non-skipping (custom insets: AdaptyPaywallInsets(start=0, top=132, end=0, bottom=63)
V/Adapty_v3.1.1(23866): VERBOSE: UI v3.1.1: 1992986868 logShowPaywall begin
V/Adapty_v3.1.1(23866): VERBOSE: logShowPaywall()
V/Adapty_v3.1.1(23866): VERBOSE: POST https://api.adapty.io/api/v1/sdk/events/ Body: {"data":{"type":"sdk_background_event","attributes":{"events":[{"event_id":"6347788e-6f1c-4baf-8f82-838ff63ea10d","event_name":"paywall_showed","profile_id":"ba45d613-04ac-46a3-af32-cdfa5a66f05a","session_id":"8ea4bfda-14d0-488c-8844-ca2914c3b3a8","device_id":"ae5de5be-0ec6-42bf-bde0-6495ef53944b","created_at":"2024-12-31T13:28:20.718Z","platform":"Android","counter":4,"variation_id":"87b4faa5-2a6e-4a16-90b7-9eb5033600b9","paywall_builder_id":"255868b6-0183-4f7c-801f-c78f07ae6265"}]}}}
V/Adapty_v3.1.1(23866): VERBOSE: UI v3.1.1: 1992986868 logShowPaywall success
I/Adapty_v3.1.1(23866): INFO: CF-Cache-Status: DYNAMIC
V/Adapty_v3.1.1(23866): VERBOSE: Request is successful. https://api.adapty.io/api/v1/sdk/events/ Response: {"data":null}

@x401om
Copy link
Collaborator

x401om commented Dec 31, 2024

@Brechard I see that you successfully presented the paywall, but I don’t see what happened next. What was the issue? Did you try to make a purchase? There are no logs indicating any actions taken after the presentation.

@Brechard
Copy link

@x401om that is the problem indeed, when I click the close button nothing happens, and paywallViewDidPerformAction is not executed. Though this is working on my old iPad with iOs 16.7.10, it is not working on Android nor the other iPad Air with iOs 18.2

@Brechard
Copy link

I have also tried to make purchase to see if the paywall is closed automatically on my Pixel 8, the purchase completes correctly but the paywall stays (again , on the old iPad this flow works properly). Here are the logs of the pixel 8 if it helps:

V/Adapty_v3.1.1(23866): VERBOSE: UI v3.1.1: 1992986868 makePurchase begin
V/Adapty_v3.1.1(23866): VERBOSE: makePurchase(vendorProductId = yourstep_subscription_yearly; basePlanId = yourstep-subscription-yearly-base; offerId = yourstep-subscription-yearly-free-trial)
D/OneSignal(23866): [main] ApplicationService.onActivityPaused(1,APP_OPEN): com.adapty.internal.crossplatform.ui.AdaptyUiActivity@5ed78e5
D/OneSignal(23866): [main] ApplicationService.onActivityResumed(2,APP_OPEN): com.adapty.internal.crossplatform.ui.AdaptyUiActivity@5ed78e5
D/OneSignal(23866): [main] ApplicationService: current activity=com.adapty.internal.crossplatform.ui.AdaptyUiActivity@5ed78e5
V/Adapty_v3.1.1(23866): VERBOSE: POST https://api.adapty.io/api/v1/sdk/purchase/play-store/token/v2/validate/ Body: {"data":{"attributes":{"is_subscription":true,"product_details":{"product_id":"yourstep_subscription_yearly","subscription_offer_details":[{"base_plan_id":"yourstep-subscription-yearly-base","pricing_phases":[{"billing_cycle_count":0,"billing_period":"P1Y","price_currency_code":"EUR","price_amount_micros":19990000,"recurrence_mode":1}]}]},"product_id":"yourstep_subscription_yearly","profile_id":"ba45d613-04ac-46a3-af32-cdfa5a66f05a","purchase_token":"jokicinieabbacdfgacnkejp.AO-J1OzJsJBOBj3jufW5ugHJTcV3czD86EY3MWWOBboCfqzTVWHp2CufYZwv9EDtjEWSYhGKAKW5wITTjf0Q2DuFU0-3yrQPYg","variation_id":"87b4faa5-2a6e-4a16-90b7-9eb5033600b9"},"id":"ba45d613-04ac-46a3-af32-cdfa5a66f05a","type":"google_receipt_validation_result"}}
I/Adapty_v3.1.1(23866): INFO: CF-Cache-Status: DYNAMIC
V/Adapty_v3.1.1(23866): VERBOSE: Request is successful. https://api.adapty.io/api/v1/sdk/purchase/play-store/token/v2/validate/ Response: {"data":{"type":"google_receipt_validation_result","id":"ba45d613-04ac-46a3-af32-cdfa5a66f05a","attributes":{"app_id":"523b7520-d0b4-44d9-8629-01825fa9d4d1","profile_id":"ba45d613-04ac-46a3-af32-cdfa5a66f05a","customer_user_id":"dd380756-5ca5-4301-b16f-03c33f43b933","is_test_user":false,"total_revenue_usd":20.811643692999624,"segment_hash":"ef46db3751d8e999","timestamp":1735652814757,"paid_access_levels":{"premium":{"is_refund":false,"is_lifetime":false,"expires_at":"2024-12-31T14:16:45.998000+0000","starts_at":null,"will_renew":true,"vendor_product_id":"yourstep_subscription_yearly:yourstep-subscription-yearly-base","vendor_transaction_id":"GPA.3388-6035-6180-00644","vendor_original_transaction_id":"GPA.3388-6035-6180-00644","store":"play_store","activated_at":"2024-12-31T13:46:50.799000+0000","renewed_at":"2024-12-31T13:46:50.799000+0000","unsubscribed_at":null,"billing_issue_detected_at":null,"is_in_grace_period":false,"active_introductory_offer_type":null,"offer_id":null,"active_promotional_offer_type":null,"active_promotional_offer_id":null,"cancellation_reason":null,"id":"premium","is_active":true,"base_plan_id":"yourstep-subscription-yearly-base"}},"subscriptions":{"yourstep_lifetime":{"is_refund":true,"is_lifetime":true,"expires_at":"2024-09-21T11:25:45.479933+0000","starts_at":null,"will_renew":false,"vendor_product_id":"yourstep_lifetime","vendor_transaction_id":"GPA.3345-7605-4446-91243","vendor_original_transaction_id":"GPA.3345-7605-4446-91243","store":"play_store","activated_at":"2024-03-07T11:19:58.850000+0000","renewed_at":"2024-03-07T11:19:58.850000+0000","unsubscribed_at":null,"billing_issue_detected_at":null,"is_in_grace_period":false,"active_introductory_offer_type":null,"offer_id":null,"active_promotional_offer_type":null,"active_promotional_offer_id":null,"cancellation_reason":"refund","is_sandbox":true,"is_active":false,"base_plan_id":null},"yourstep_subscription_yearly:yourstep-subscription-yearly-base":{"is_refund":false,"is_lifetime":false,"expires_at":"2024-12-31T14:16:45.998000+0000","starts_at":null,"will_renew":true,"vendor_product_id":"yourstep_subscription_yearly:yourstep-subscription-yearly-base","vendor_transaction_id":"GPA.3388-6035-6180-00644","vendor_original_transaction_id":"GPA.3388-6035-6180-00644","store":"play_store","activated_at":"2024-12-31T13:46:50.799000+0000","renewed_at":"2024-12-31T13:46:50.799000+0000","unsubscribed_at":null,"billing_issue_detected_at":null,"is_in_grace_period":false,"active_introductory_offer_type":null,"offer_id":null,"active_promotional_offer_type":null,"active_promotional_offer_id":null,"cancellation_reason":null,"is_sandbox":true,"is_active":true,"base_plan_id":"yourstep-subscription-yearly-base"}},"non_subscriptions":null,"custom_attributes":{},"promotional_offer_eligibility":false,"introductory_offer_eligibility":true,"google_validation_result":{"kind":"androidpublisher#subscriptionPurchaseV2","startTime":"2024-12-31T13:46:50.799Z","regionCode":"ES","subscriptionState":"SUBSCRIPTION_STATE_ACTIVE","latestOrderId":"GPA.3388-6035-6180-00644","testPurchase":{},"acknowledgementState":"ACKNOWLEDGEMENT_STATE_ACKNOWLEDGED","lineItems":[{"productId":"yourstep_subscription_yearly","expiryTime":"2024-12-31T14:16:45.998Z","autoRenewingPlan":{"autoRenewEnabled":true},"offerDetails":{"basePlanId":"yourstep-subscription-yearly-base"}}]}}}}
I/flutter (23866): [AdaptyFlutter a3.2.3] - VERBOSE: handleIncomingCall did_load_latest_profile
V/Adapty_v3.1.1(23866): VERBOSE: UI v3.1.1: 1992986868 makePurchase success

@x401om
Copy link
Collaborator

x401om commented Dec 31, 2024

Thank you for the logs, @Brechard! Unfortunately, we weren’t able to reproduce the issue yet, but we’ll take a closer look.
Could you please try running our Example app (set your bundle ID, API key, and paywall IDs) and check if the issue still persists?

@Brechard
Copy link

@x401om I have tried with the Adapty example, and it works on both devices. So could it be that Adapty clashes with some other package that we are using? (I know that we gave a try to Superwall and it was conflicting with home_widget package and we could not use it because of that)

@PBomermustekiin
Copy link

PBomermustekiin commented Jan 3, 2025

i had that problem for android real devices, with adapty 3.3.0 now i have for ios real devices too. It is really annoying bug. @x401om u guys need to focus this issue, it is not rare situation and causing really big trouble, users cant use app with this. I cant release my apps because of this issue.

@x401om
Copy link
Collaborator

x401om commented Jan 3, 2025

@PBomermustekiin does the issue persist if you run the example app as well?

@PBomermustekiin
Copy link

PBomermustekiin commented Jan 3, 2025

i dont know cant run your example project, build failing. I dont have time really for make build success. But same codes, 3.2.4 ios paywalls closing but 3.3.0 is not. Android paywalls not closing as well for both version.

@x401om
Copy link
Collaborator

x401om commented Jan 3, 2025

@PBomermustekiin unfortunately, I was unable to reproduce the issue you described. To assist us in resolving this matter, could you please provide the following information?

  • The paywallId (paywall.instanceIdentity) and the paywall variationId (paywall.variationId). This could potentially be an issue with the view configuration and not directly related to the SDK. Testing your specific paywall will help us narrow down the cause.
  • Collect detailed logs from the SDK, including both the Dart and Swift layers. Please run the app in Xcode to capture these logs.
  • A minimal working project where this issue persists would be extremely helpful for reproducing and diagnosing the problem.
  • If possible, run our demo app to rule out any integration issues in your code.

@sajithlascade
Copy link

sajithlascade commented Jan 6, 2025

This issue can be reproducible by following
Android:

  1. Run the app
  2. View the paywall
  3. Close the app (I am using back press and PopScope with SystemChannels.platform.invokeMethod('SystemNavigator.pop');
  4. Then open the app
  5. Now view the paywall and the paywall does not get closed by clicking on the close button (Android back nav button will work but after that paywall can't be viewed

@vladd-g
Copy link
Collaborator

vladd-g commented Jan 6, 2025

@sajithlascade thank you for the steps to reproduce, fixed on Android

@vladd-g
Copy link
Collaborator

vladd-g commented Jan 6, 2025

@gaucidaniel, @Brechard, @PBomermustekiin do you have a production iOS app where this can be reproduced? Could you please provide App Store links?

@Brechard
Copy link

Brechard commented Jan 6, 2025

@vladd-g we didn't reach production since we had the problem on TestFlight and when launching from Android studio, so we stopped implementing it until we could find a solution

@vladd-g
Copy link
Collaborator

vladd-g commented Jan 6, 2025

@Brechard could you please share your company name?

And did you check iOS on v3.3.0?

@Brechard
Copy link

Brechard commented Jan 6, 2025

the company is YourStep, and we have not tried with v3.3.0, we were using adapty_flutter: ^3.2.3, but seems like other people are having the same problem with 3.3.0 #141

@x401om x401om changed the title Close button not working on Android [Android] Close button not working Jan 6, 2025
@x401om x401om changed the title [Android] Close button not working [Android] AdaptyUI Close button not working Jan 6, 2025
@vladd-g
Copy link
Collaborator

vladd-g commented Jan 6, 2025

@gaucidaniel, @Brechard, @PBomermustekiin @agladyshev @sajithlascade

Could you please try 3.3.1 on Android?

@x401om
Copy link
Collaborator

x401om commented Jan 6, 2025

Hi everyone!

It seems like there is a mix of two separate, independent issues, so I’ll try to clarify everything here.

First of all, this particular issue was created solely for Android and not for iOS. I’ve renamed it for clarity. We have fixed the original error today – thank you to everyone who helped us investigate it and, of course, for providing the reproducible steps. Could you guys please confirm if the issue has been resolved with version 3.3.1?


It appears there is an issue on iOS as well (#141). However, we believe:

a) It is not connected to the original Android issue and has an independent cause.
b) There is currently no evidence to suggest that the Adapty SDK itself is the root cause, as @Brechard confirmed the Example app functions as expected.

To maintain clarity and focus, I propose we address the iOS issue separately. I have renamed the related thread and will compile all relevant information about the iOS issue there.

Let’s continue investigating the iOS issue in its dedicated thread. Tagging @Brechard and @PBomermustekiin to collaborate further.

@agladyshev
Copy link

agladyshev commented Jan 13, 2025

I've updated to 3.3.1 and haven't encountered this issue on Android since.

@x401om
Copy link
Collaborator

x401om commented Jan 14, 2025

The original issue seems to be resolved.

@x401om x401om closed this as completed Jan 14, 2025
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

7 participants