DefinedNet / mobile_nebula

Brings nebula to mobile devices (iOS, Android)
https://defined.net
125 stars 37 forks source link

Hide QR code scanner on devices without cameras #101

Closed johnmaguire closed 1 year ago

johnmaguire commented 1 year ago

On Android, some devices lack the camera hardware feature (e.g. many Chromebooks, even if they technically do have a webcam.) If they do, attempting to scan a QR code will crash the app.

This change hides the "QR Code" option from devices without the camera feature.