arx-research / libhalo

LibHaLo - Programmatically interact with HaLo tags from the web browser, mobile application or the desktop.
https://arx.org/?source=gh
MIT License
30 stars 5 forks source link

Allow rescanning of QR code on halo-gateway mobile scanning page #281

Open ccamrobertson opened 7 months ago

ccamrobertson commented 7 months ago

When a connection is closed on the mobile side, it would be nice to offer for the user to scan a subsequent QR code to restart a halo gateway instance.

IMG_0815

I recommend adding a "Scan QR Code" button to this page that would launch the camera, capture the new halo gateway QR code and initiate a new web sockets connection.

icedevml commented 7 months ago

The initial workflow for opening this page is that the user is just asked to open [Camera] app on his smartphone and scan the QR code. So this website doesn't have any QR code scanning functionality on it's own.

Please also note that this webpage is served straight by the HaLo Gateway server, and it's a very plain HTML + JS at the moment (there's no frontend framework there). It would be wise to consider rewriting this entire set of webpages into React.js if we are planning to add such more complex features/scenarios.