Help for owners
The camera or photo upload in my app does not work
Short answer
Camera and upload failures usually come from a permission the user denied, a permission the app never asked for properly, or an upload the server rejects, often because the photo is too large. Check the phone's app settings first, then try a small photo on Wi-Fi, and send me the phone model.
Does this sound like your situation?
- I tap the camera button and the screen is black or nothing happens.
- The app asks for camera access once and never again.
- The photo is taken but the upload spins forever or says it failed.
- It works on my phone but not on some customers' phones.
Why does this happen?
The user denied the camera permission
Android asks for access at the moment a feature needs it. If the user taps Deny more than once for the same permission, the system stops showing the prompt again, and the app has to explain what is missing instead of asking again.
Confirmed by developer.android.com
The app asks at the wrong moment, or not at all
Android recommends asking for a permission in context, when the user starts the feature that needs it, and checking the permission every time the feature is used. An app that asked once at install and never checked again breaks as soon as access is removed.
Confirmed by developer.android.com
Access can change without the app being told
Android can reset permissions of apps that are not used for a while, and users can switch permissions off in system settings. The app has to cope with that instead of showing a black screen.
Confirmed by developer.android.com
The upload is rejected by the server
Even when the camera works, a photo can fail on the way up. Typical causes are a file larger than the server accepts and a connection that drops half way. That is a server and app matter, not a camera one.
Technical detail: Express rejects a request body as too large
What can I do about it today?
- Check the app's permissions on the phoneOpen the phone's settings, find your app, open Permissions and confirm Camera is allowed. Then reopen the app and try again.
- Try a different photoTake a new, ordinary photo and upload it over Wi-Fi. If a small photo works and a big one fails, the upload limit is the problem.
- Write down exactly what you seeNote the phone model, the system version, the exact screen and the exact words of any message. A screenshot or short screen recording helps a lot.
- Find out how many phones are affectedAsk two or three users with different phones to try. One brand failing points to a compatibility issue, everyone failing points to a recent change.
- Do not reinstall in the middle of a testUninstalling can remove locally saved drafts. Capture what you see first, then reinstall only if someone has confirmed nothing important is stored on the phone.
When should I bring someone in?
- Users cannot take photos at all, and photos are part of what they pay for.
- The problem started right after an app update or a phone system update.
- Uploads fail for some users only and nobody can say why.
How do I handle it?
- Reproduce it on real devicesI try the exact steps you describe on a phone with the same operating system version, so I see what your users see before I change anything.
- Find the one causeI read the logs and the error reports, and I change one thing at a time so the cause is proven, not guessed.
- Fix it behind a backupBefore I touch production I take a backup, and I keep a tested way back in case the change does not behave.
- Prove it and write it downI check the fix again on the real devices, then give you a short written note of what was wrong and what changed.
The price depends on what I find, so I quote in writing after a short discovery call. Tell me what is happening and I reply within 24 hours.
What do owners ask about this?
Why does the app not ask for camera access again?
On Android, if a user taps Deny more than once for the same permission, the system no longer shows the prompt for that app. The app has to explain what is missing and point to settings without nagging, which is Android's own guidance.
Does it matter whether it is an iPhone or an Android phone?
Yes. The two systems handle permissions differently, so I test on both and tell you which one is affected before I change code.
Can I fix it by asking users to reinstall?
Sometimes it brings back a prompt, but it hides the real cause and it can lose data stored on the phone. I would rather find the cause.
Sources
How was this page made?
I drafted this page with AI assistance from the official documents listed under Sources. Found a mistake? Tell me.
For your developer: the technical fixes
open failed: EACCES (Permission denied)READ/WRITE_EXTERNAL_STORAGE is declared but the app still cannot reach filesMissingPluginException(No implementation found for method getAll on channel plugins.flutter.io/shared_preferences)Flutter throws MissingPluginException for a plugin methodHTTP 413 returned by Express when a JSON or form body is larger than the limit optionExpress rejects a request body as too largeError: Unexpected end of formMulter upload fails with 'Unexpected end of form'