Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged

Commits on Oct 3, 2024

  1. fix(web): prevent unsupported operation error in isPhysicalDevice() o…

    …n web
    
    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 web. Now the method will return false when running on web, avoiding the unsupported operation error that occurs when trying to run device checks.
    
    - Imported 'kIsWeb' to detect web platform.
    - Updated isPhysicalDevice() to return false for web platform.
    - Ensured backward compatibility with iOS and Android platforms.
    mohitrajsinha committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    8a11c57 View commit details
    Browse the repository at this point in the history