Shopify / shopify-app-bridge

https://shopify.dev/docs/api/app-bridge
82 stars 9 forks source link

navigator.clipboard.writeText() not working in our production app on Android #379

Open ascherkus opened 3 weeks ago

ascherkus commented 3 weeks ago

Describe the bug

We use navigator.clipboard.writeText() to copy text to the clipboard.

Nothing happens when doing so in our production app. Strangely enough, other apps and our development versions of our app work as expected.

Multiple users have reported this issue with our app.

To Reproduce

Steps to reproduce the behaviour:

  1. Install and launch our app EasyRoutes
  2. Continue with free plan
  3. Add one order to the map and click Create Route
  4. Click Dispatch to open modal
  5. Click Dispatch in the modal itself
  6. Click on the Copy button

Expected behaviour

The text should be copied to the Android system clipboard.

Contextual information

Packages and versions

"@shopify/app-bridge": "3.7.4",
"@shopify/polaris": "12.10.0",

Platform

Additional context

Add any other context about the problem here, such as your app’s configuration (Node, Next.js, Rails).