I have created a Bluetooth enabled device and I plan to sell both the device and some special “programs” for it. I have a working prototype running on my website and my initial plan was to send customers to this site once they have made a purchase. But that’s not a great user experience.
Since Shopify supports Javascript, I’m wondering if I could just run the code on Shopify’s site. Here’s what the code would need to do:
- Connect to the Bluetooth device (this is fairly simple)
- Download and play (or stream) an audio file
- Start a timer
- Iterate through a data file of timestamps (there is one data file for each audio file)
- Each time the timer = a timestamp, send a signal to the Bluetooth device