czlucius / code-scanner

An Android app to scan and generate codes(barcodes/QR codes)
GNU Affero General Public License v3.0
39 stars 24 forks source link

URL without http(s) schema cannot be opened #20

Closed czlucius closed 2 years ago

czlucius commented 2 years ago

Describe the bug A URL code without the HTTP(S) schema (e.g. www.google.com) cannot be opened by Open URL chip.

To Reproduce Steps to reproduce the behavior:

  1. Scan a QR code with a URL text without the HTTP(S) schema, e.g. www.google.com (QR code provided below)
  2. Click on the "Open URL" chip.

Expected behavior Link opens in browser.

Actual behavior "No browsers found." toast appears.

Screenshots If applicable, add screenshots to help explain your problem.

Device information

Additional context Add any other context about the problem here.

QR @ 3 Jan 2022 17_11_13.png This is a sample code that will trigger the said bug.