Telegram-iOS
Telegram-iOS copied to clipboard
Native QR Code Scanner Fails to Scan QR Codes Generated from JSON Strings
Checklist
- [X] I am reporting an issue in existing functionality that does not work as intended
- [X] 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
- Initiate test environment as described here: https://core.telegram.org/bots/webapps#testing-mini-apps
- Using App Settings, open "Suggested Attach Bot"
- From Within "Suggested Attach Bot", press "Try Webview", then at the bottom "showScanQrPopup" which shows native QR Code scanner.
- QR Code scan fails on QR Codes Generated from JSON Strings
Screenshots and Videos
- Generated QR Code from JSON String: {"key": "value"}
- Print screen from "Suggested Attach Bot" "Try Webview" MiniApp
Environment
Device: iPhone 15 Pro
iOS version: 17.4.1
App version: 7.X