Access to Bluetooth device

We are using Bluetooth with multiple non-standard devices. What would it take to add a parameter to allow Bluetooth on one app?

I have tried many things: Direct access, custom component, preloaded JS but each time, the access is rejected due to the Sandbox missing the allow-bluetooth directive.

Hi @AlexisP,

I can make a feature request for this! I can't guarantee it is possible, as Retool code for workflows does run in a sandboxed environment and may not have access to the devices operating system to interface with the bluetooth functionality.

Just to confirm, are you using a web app or the mobile app? And are you using a workflow?

We are using a web app, and it is not in a workflow.

The limitations on Bluetooth are:

  • Use chromium-based browser
  • Enable the Bluetooth flag
  • All bluetooth requests have to come from an explicit user interaction

I have also tried:

  • Code in the global JS subscribing to events: Is not triggered by an event
  • Custom components: Within a Bluetooth restricted iframe
  • Plain iframe: Within a Bluetooth restricted iframe

Adding "bluetooth" access in the iframe configuration would be sufficient to unblock us in the meantime.

1 Like

Thank you for the details @AlexisP!

I can add that in to the feature request, apologies for the inconvenience.

What kind of data are you looking to pass via bluetooth? If you have more details on your use case of what data you are trying to get into your app and from where, I may be able to help you find some alternatives in the meantime!

Right now, I have had to spinup a 3rd party service retool redirects to, a good example would be:

Hey @AlexisP - it sounds like you've exhausted all of the existing avenues within the Retool product, but I'm glad to know that you have a serviceable solution - even if it's not ideal. :sweat_smile:

I think the most realistic action we can take is to enable the necessary allow attribute on the custom component iframe via a toggle. We've modified its permissions a few time now since rolling out the new CCL, so it's probably something we'd be open to. I'll talk to the team and let you know what we might be able to do.