Empower growth and innovation with the latest Mobile App insights

App scan frame shows a picture but no result while WeChat scans it instantly: check camera permission or decoding first?

Nov 14, 2026 Read: 42

Bottom line first: when the App scan frame shows a picture but no result comes back for a long time, it is usually not because camera permission was not granted, and it is not because the phone camera is poor. When camera permission is missing, the viewfinder usually shows no picture at all; if a picture is visible but scanning fails, the problem more often lies in the later part of the chain: viewfinder—focus—decoding—result dispatch. The fact that WeChat scans it immediately only shows that the code itself and the system camera are probably fine; it does not directly mean “we are missing permission.” Based on 2026 project delivery experience, common differences are in viewfinder size, focus strategy, decoding area, multi-frame attempts, and result deduplication.

First distinguish: the camera is not up, or the picture is up but there is no result

These two things differ greatly in troubleshooting cost, but users describe them almost the same way, both saying 'it won't scan.' The judgment method is simple: ask the user whether there is a picture in the viewfinder. A black screen, pure gray, or being bounced back to the previous page as soon as the page opens means the camera is not up; a normal picture with a visible QR code but no result means the recognition chain is not working. The former checks permission and occupancy; the latter checks focus and decoding.

There are also easy-to-miss points at the permission layer: on iOS, the camera usage description must be written in the configuration; if it is missing, the app may crash directly instead of showing a pop-up. On Android, camera permission and photo album reading permission must be distinguished. Scanning itself only uses the camera; only 'recognize by choosing an image from the gallery' touches image reading. Mixing the two into one sentence, 'permission was not granted,' will steer troubleshooting in the wrong direction.

  • No preview at all: first check camera permission, whether another app is occupying the camera, and whether the page has failed to reconnect after returning from the background.
  • Preview but no result: stop circling around permission and look directly at focus mode, decoding area, and error-correction settings.
  • Occasionally scans, mostly does not: it is mostly environmental factors combined with a strategy that decodes only one frame.

Why WeChat scans immediately while our App keeps spinning

Scanning is not 'take one photo and then recognize it'; it is a process of continuously taking frames and continuously trying. Mature products take multiple frames within a few seconds, try focus and decoding on each frame, and end as soon as any frame succeeds; many custom projects take only one frame, or decode before focus is complete, so the success rate is naturally lower, and what users feel is 'it keeps spinning.'

Preprocessing differences are also obvious. Mature approaches grayscale the picture, crop it according to the viewfinder, enlarge it when necessary, and then hand it to the decoding capability; decoding directly on the full high-resolution preview image wastes computing power and lowers the frame rate, making scanning even less likely. On common mid-range phones in 2026, limiting the decoding area to the viewfinder and keeping preview resolution in the 720p to 1080p range is a relatively stable combination.

Several common differences, ranked by frequency of occurrence

  • Focus strategy: mature products default to continuous autofocus and give users a tap-to-focus entry; custom Apps often set a fixed focal length.
  • Decoding area: decoding only the viewfinder area is faster than decoding the full image and more likely to hit.
  • Multi-frame retry: continuous attempts have a higher success rate than single-frame attempts, especially in environments with glare and low light.
  • Auxiliary means: turning on the flashlight, adjusting exposure, and prompting the user to move closer or farther away—these small actions have a noticeable impact on the success rate.

A four-layer troubleshooting framework you can follow: preview—image—decoding—result

Scanning is split into four layers because the four layers show different failure symptoms and often have different owners: the preview layer is mostly permission and camera configuration, the image layer is picture quality, the decoding layer is algorithms and parameters, and the result layer is business navigation. Checking from the bottom up avoids costly trial and error such as 'replace the library right away.'

  1. Preview layer: camera permission is granted, no other app is occupying the camera, and the picture is not obviously stretched; the pass criterion is that a clear picture appears within about 1 second after opening the page.
  2. Image layer: the viewfinder and the actual decoding area match, brightness is moderate, and there is no large-area glare; the pass criterion is that users can steadily put the code inside the frame at a distance of 15 to 30 cm.
  3. Decoding layer: use mature decoding capability, enable multi-frame attempts, and choose error-correction handling according to code density; the pass criterion is that a common link code scans successfully 8 or more times out of 10 consecutive scans, which is an experience range.
  4. Result layer: deduplicate the same result, verify the address and parameters before navigation, and provide manual input or gallery image selection as a fallback on failure.

Each layer needs acceptance actions, preferably written into the test checklist: scan in low light, scan against a strongly reflective screen, scan a printed code, scan a screenshot code, scan an extra-long link code, and scan the same code continuously to see whether it causes repeated navigation. Running these six scenarios once is more meaningful than scanning a single clear test code ten times.

Common pitfalls at delivery sites and the cost of rework

One project had tight budget and schedule. The client provided only one clearly printed short-link code, and the developers tuned it until it could scan that code and then delivered. After launch, users scanned long-link codes on posters, codes pasted behind glass, and codes on phone screens; complaints quickly came in. Going back to add gallery recognition, lighting prompts, and result deduplication commonly takes 2 to 4 extra working days, and in severe cases it can squeeze the release window—this is a fairly typical rework cost at delivery sites. Another pitfall is cutting 'recognize by choosing an image from the gallery' as optional; many real paths are that users first take a screenshot and then recognize it. Without that entry point, customer service ticket volume tends to rise; if results are not deduplicated, the page may also be pushed twice. At delivery, first check whether the same code is processed only once within a short period.

A checkable comparison of three scanning approaches

Approaches are not superior or inferior; only fit matters. For judgment dimensions, it is recommended to look at four items: whether the recognition rate can cover real scenarios, whether the increase in bundle size is acceptable, whether licensing and privacy compliance are clear, and whether you can modify it yourself when problems occur. The ranges below are based on common project experience; specifics should still be based on actual testing.

  • Built-in system recognition capability: integration cycle is commonly 1 to 3 working days, bundle size increase is usually small, and recognition rate is medium-to-high; suitable for standard codes, limited budgets, and projects that only need basic scanning.
  • Mature third-party scanning library: integration cycle is commonly 2 to 5 working days, bundle size commonly increases by a range from a few MB to more than ten MB, and low-light and multi-frame performance is usually better; before integration, check the license terms and the camera- and image-related declarations in the privacy manifest.
  • Invoke WeChat, Alipay, or the system camera: integration cost is very low and reliability is relatively high, but users are taken out of the App, and return navigation still needs to handle login state; suitable for low-frequency, non-core paths.

If scanning is the first main flow, such as redemption, stocktaking, or turnstiles, it is worth investing more in in-house recognition; if it is used only a few times a month, directly guiding users to scan with the system camera or WeChat is actually more convenient. “Worth it” here is not an absolute conclusion; it depends on ticket volume, redemption efficiency, and user paths.

Applicable scenarios and boundaries where it is not applicable

Situations suitable for building in-house scanning capability: scanning is a core business action, needs to be strongly bound to login state and orders, requires continuous batch scanning, needs to be used in low light or outdoors, and needs to scan codes on screens. Situations where it is not applicable or in-house development is unnecessary: it appears only once on a campaign page, the user group mainly operates inside WeChat, and all scanned codes are generated by yourself with controllable size and error correction; in these scenarios, using the system camera or invoking WeChat is more cost-effective.

Another boundary is the acceptance criteria. If the budget only allows one general solution, the applicable environment should be clearly written in the requirements and test checklist: normal indoor light, common distances, common print quality. Stating the boundaries upfront is more useful than repeatedly explaining afterward that 'the phone is too old.' According to 2026 enterprise project delivery habits, such checklists are usually defined together by product and testing during the requirements stage.


If you are going to take action, it is recommended to first collect 5 to 10 codes that users will actually scan—several printed, several on screens, and several in low light—run the current implementation with them, and then decide whether to adjust parameters or change the approach. If the scenario has only occasional scanning and users are already used to operating in WeChat, handing this step to the system camera or WeChat Scan is a more pragmatic boundary choice.

FAQ

Does scanning require storage permission?

Most cases do not; recognition is usually completed in memory. Only recognizing by choosing an image from the gallery involves image reading, and you can call the system photo picker without requesting full storage permission.

Same code scans when printed, but not when pointed at a phone screen. Why?

Screens refresh and reflect light, so the camera easily captures uneven brightness and stripes; a common approach is to increase screen brightness, lower preview exposure, and make multi-frame attempts instead of decoding only one frame.

After scanning, it navigates to the wrong page. Check the code first or the App first?

First check whether the code content corresponds one-to-one with the navigation rules, then check whether the client repeatedly calls back on the same result; short links without parameters and lost parameters on the landing page are also common.

If only adjusting the scanning part, how long does one revision roughly take?

If only adjusting focus and decoding area, the experience range is 1 to 3 working days; to add gallery recognition, lighting prompts, and result deduplication, it commonly takes 3 to 7 working days, still depending on the number of test scenarios.

Interested in this topic?
10-year tech team — reference proposal within 24 hours
Obtain Proposal
Are you ready?
Then reach out to us!
+86-13370032918
Discover more services, feel free to contact us anytime.
Please fill in your requirements
What services would you like us to provide for you?
Your Budget
ct.
Our WeChat
Professional technical solutions
Phone
+86-13370032918 (Manager Jin)
The phone is busy or unavailable; feel free to add me on WeChat.
E-mail
349077570@qq.com
Submitted successfully
Thank you for your trust. We will contact you soon!
Recommended projects for you