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

Native QR Code Scanner Fails to Scan QR Codes Generated from JSON Strings #1387

Open
2 tasks done
gulintech opened this issue Apr 9, 2024 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@gulintech
Copy link

Checklist

  • I am reporting an issue in existing functionality that does not work as intended
  • I've searched for existing GitHub issues

Description

I've encountered an issue within my mini-app where the native QR code scanner fails to scan QR codes generated from JSON formatted strings. This problem occurs regardless of the JSON complexity or the QR code's size, specifically within the mini-app environment. The expected outcome is for the QR code scanner to successfully decode the QR code and display the JSON string.

It happens with any QR Code created from strings with double quotes

Expected Behavior

The QR code scanner within the mini-app should accurately decode the QR code and display the encoded JSON string to the user.

Actual Behavior

The QR code scanner within the mini-app does not recognize or decode QR codes generated from JSON formatted strings. There are no error messages displayed; the scanner simply fails to acknowledge the QR code.

Steps to Reproduce

  1. Initiate test environment as described here: https://core.telegram.org/bots/webapps#testing-mini-apps
  2. Using App Settings, open "Suggested Attach Bot"
  3. From Within "Suggested Attach Bot", press "Try Webview", then at the bottom "showScanQrPopup" which shows native QR Code scanner.
  4. QR Code scan fails on QR Codes Generated from JSON Strings

Screenshots and Videos

  1. Generated QR Code from JSON String: {"key": "value"}
    frame
  2. Print screen from "Suggested Attach Bot" "Try Webview" MiniApp
    IMG_5100F68DBCD9-1

Environment

Device: iPhone 15 Pro

iOS version: 17.4.1

App version: 7.X

@gulintech gulintech added the bug Something isn't working label Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant