Shopify / checkout-sheet-kit-android

Shopify’s Checkout Sheet Kit makes it simple to perform a checkout inside your Android app.
MIT License
12 stars 3 forks source link

The back arrow/button behavior in CheckoutDialog cannot be overriden #135

Open marcinKdev opened 2 weeks ago

marcinKdev commented 2 weeks ago

What area is the issue related to?

Checkout Sheet Kit

What version of the package are you using?

3.1.1

Reproducible sample code

We are displaying the CheckoutSheetKit in a recommended way from the level of MainActivity in our app: ShopifyCheckoutSheetKit.present(url, this, shopifyCheckoutSheetEventsProcessor)

and the checkout window that pops up over the screen contains two buttons on top. The "X" button works well but the back arrow does not work at when I tap on it:

Image

Steps to Reproduce

Display the checkout overlay in a way desribed in SDK README like

fun presentCheckout() { val checkoutUrl = cart.checkoutUrl ShopifyCheckoutSheetKit.present(checkoutUrl, context, checkoutEventProcessor) }

Note the back arrow of the checkout dialog not working.

Expected Behavior

SDK should provide a way to override the behavior of the back arrow to hide it

Actual Behavior

Back arrow is not operational, there's no way to override its behavior or hide it

Screenshots/Videos/Log output

No response

Storefront domain

westwing-main-prod.myshopify.com

kiftio commented 2 weeks ago

Hi @marcinKdev I wouldn't normally expect the back/up button to be visible on the dialog's toolbar. I'd like to try to reproduce it. If you're able to answer any of these it could help speed that up:

Thanks!

E.g. screenshot from the MobileBuyIntegration sample (with a custom title) Image

kiftio commented 1 week ago

Hi @marcinKdev did you manage to figure this out? Or are you able to provide any of the above info?

Thanks