TBD54566975 / didpay

Mobile app that provides a way for individuals to interact with PFIs via tbDEX
Apache License 2.0
6 stars 7 forks source link

fix(web): prevent unsupported operation error in isPhysicalDevice() on web #306

Closed mohitrajsinha closed 1 month ago

mohitrajsinha commented 1 month ago

Added a check for kIsWeb in the DeviceInfoService to bypass the isPhysicalDevice() check on web platforms, since the app doesn't support QR code scanning on the web. Now the method will return false when running on the web, avoiding the unsupported operation error that occurs when trying to run device checks.