Skip to content

Conversation

@angryLid
Copy link

Add the "Import from QR Code" alternative to "Create Profile"

Add dependencies:

  • quickie = "1.11.0"
  • androidx-activity-ktx = "1.9.0"

Manually tested on my Samsung devide
See the effect in the following recording

CMFA-Scan-1.mp4

@angryLid angryLid changed the title feat(app,design): Implement QR Coder scanner feat(app,design): Implement QR Code scanner Nov 29, 2025
@wwqgtxx wwqgtxx merged commit ed2f1d7 into MetaCubeX:main Nov 29, 2025
1 check passed
@wwqgtxx wwqgtxx mentioned this pull request Nov 29, 2025
ForestL18 pushed a commit to ForestL18/ClashMetaForAndroid that referenced this pull request Nov 29, 2025
@angryLid angryLid deleted the feat/scan-qrcode branch November 30, 2025 04:52
@vivodi
Copy link

vivodi commented Dec 12, 2025

Is it possible to share saved profiles via a QR code? This PR only covers QR-code–based imports and does not add support for exporting profiles as a QR code for sharing with other devices.

@angryLid
Copy link
Author

Is it possible to share saved profiles via a QR code? This PR only covers QR-code–based imports and does not add support for exporting profiles as a QR code for sharing with other devices.

The profile's size is often too large for any type of 2D Barcode. So, exporting a profile as a QR Code image is almost impossible.

You may share the subscription URL via the steps:

  1. click the handler at the right side of your profile and see the popup
  2. click edit
  3. send the url to anywhere, including
    • the browser, to download your profile
    • your favorite QR Code generator, to get the image.

Copy link

@abdelazizbouias-spec abdelazizbouias-spec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hiii

@vivodi
Copy link

vivodi commented Dec 17, 2025

Is it possible to share saved profiles via a QR code? This PR only covers QR-code–based imports and does not add support for exporting profiles as a QR code for sharing with other devices.

The profile's size is often too large for any type of 2D Barcode. So, exporting a profile as a QR Code image is almost impossible.

You may share the subscription URL via the steps:

  1. click the handler at the right side of your profile and see the popup

  2. click edit

  3. send the url to anywhere, including

    • the browser, to download your profile
    • your favorite QR Code generator, to get the image.

Thank you very much for your answer. However, it would be even better if you could submit a follow-up PR that allows a profile imported via URL to display the QR code corresponding to the URL when clicking the three dots on the right side.

Currently, v2rayNG can display the QR code for a subscription link directly within the app, without needing an external QR code generator.

This software can already distinguish between profiles imported via file and those imported via URL. We just need to make it possible for profiles imported via URL to share the URL via QR code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants