Telegram-iOS icon indicating copy to clipboard operation
Telegram-iOS copied to clipboard

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

Open gulintech opened this issue 2 months ago • 0 comments

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

  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 avatar Apr 09 '24 13:04 gulintech