Skip to content

completed event is not caught on Android on release builds #124

@xseignard

Description

@xseignard

What area is the issue related to?

Checkout Sheet Kit

What platform does the issue affect?

Android

What version of @shopify/checkout-sheet-kit are you using?

3.0.1 and 3.0.3

Do you have reproducible example code?

No response

Steps to Reproduce

  • Implement @shopify/checkout-sheet-kit
export const SomeComponent = () => {
  const shopifyCheckout = useShopifyCheckoutSheet();
  useEffect(() => {
    const completed = shopifyCheckout.addEventListener(
      'completed',
      (event: CheckoutCompletedEvent) => {
        console.log("I'm here");
      },
    );
    return () => {
      completed?.remove();
    };
  }, [shopifyCheckout]);

  return <SomeStuff />
};
  • Perform a purchase on a store on Android
  • The completed event is caught on dev builds, not caught on release build

Expected Behavior

The completed event is caught on release build

Actual Behavior

The completed event is not caught on release build

Storefront domain

redacted

Screenshots/Videos/Log output

No response

Metadata

Metadata

Assignees

Labels

BugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions