What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Microphone Access

Microphone Access

poignantcarp
Visitor
1 0 0

Hey all, does anyone know if it's possible to access the device's microphone specifically from a Checkout UI extension (for context, I'm building an app that adds a widget on the thank you/order status page and has a button that if clicked, would allow the user to do a voice recording through the device's microphone).

 

I've tried:

  • Using `navigator.mediaDevices.getUserMedia` in the Checkout UI extension itself, but getting an error that Shopify doesn't allow access to the microphone.
  • Putting an iframe pointing to my widget in the Checkout UI extension, but looks it doesn't support using <iframes>
  • Creating a theme extension block that contains an Iframe pointing to my widget. But it doesn't seem like I can add a theme extension block to the Thank you page, and even if I could, not sure that it would allow microphone access anyway.

 

Does anyone know if microphone access is possible or if I'm missing anything? Or is it just a security risk that Shopify doesn't allow?

Replies 0 (0)