In some android devices when capturing an image, the apps calls the camera, the user takes de photo and clicks ok, but the image is not saved.
We also are developing apps, and recently started to experience a similar, intermittent problem using an Android device camera, AWS Aurora and S3. It has arisen recently for us and coincides with (but may not be caused by) turning off the setting Behaviour > Offline/Sync > Store content for offline use
. We are still investigating, but are interested to know that other people are experiencing a similar problem.
It might be helpful to know the particulars of the devices on which it doesnโt work: make, model, OS & version, whether the device has the latest AppSheet app.
Also, have you checked the affected deviceโs available storage? Is there room on the device to save the image?
The model giving us trouble is the 2017 Samsung Galaxy Tab A 8" 32 GB Model T380, Android 8.1.0. The device currently has 14 GB free. If the device is out of memory, how does AppSheet handle the situation? A zero length string is saved to our AWS Aurora database by AppSheet, and the corresponding file doesnโt arrive in our AWS S3. Weโve have months of trouble free behaviour with this pattern. It has just been cropping up intermittently since May 10th, around the same time we threw the switch to off for Store content for offline use
.
After some investigation at our end, weโve decided to add a column data validity test โฆ
Data > Columns > image_url > Valid If
: ISNOTBLANK([image_url])
โฆ to guarantee that a zero-length string is not saved to the database. This will force the user to stay in the โtake a pictureโ form until they get it right.
Our users report that the Samsung/Android camera sometimes fails to save an image, which might be at the root of our problem. Any further insight you could provide Steve would be great.
Hi @jujogar10 @Stuart_Carmichael,
Once the user takes the photo, does a preview of the image appears in the form before itโs saved? If you could add a video capture of the issue that would be helpful.
Also, what version of the AppSheet app is running on that device?
Could you let me know the app name and which user(s) have experienced this issue? If you donโt want to disclose those details publicly feel free to send me DM or email support@appsheet.com.
Sorry for taking so long to get back to you. I am awaiting on the information from site wrt. the AppSheet version. It was installed in the last week of Apr 2019 on a fresh Android tablet for the first time. Itโll be around version 13.1 (I think). I will update this response once Iโve got confirmation.
Hi, I am just checking if this issue was every resolved for you because I am having this exact problem right now. I can capture an image from a file upload on the phone, but when I try to use the camera it doesnโt upload the image to the GDrive or App. The only thing that does upload is the file name to the google sheet. There is no actual file in the GDrive and no preview of the image in the app.
The phone is a huawei p20 with android emui 9.1.
This is the App: https://www.appsheet.com/newshortcut/313eaa22-b7f3-47ae-80c3-a716c0830691
Any advice would be helpful
Hi @Derek_Morgan,
A few questions:
Hi Gil
To answer your questions:
One more thing, when I get this problem a file gets saved in the folder โSiteInspection_Files_โ rather than โSiteInspection_Imagesโ. The file has the extension .jpg but it isnt a real image file. โ
Example here: https://drive.google.com/file/d/1Gnx6PaDAXdSMErPeh0znZvvfbt0cUkS8/view?usp=sharing
When I dont get this problem, the file gets saved to โSiteInspection_Imagesโ
Thanks @Derek_Morgan,
I wasnโt able to find anything obviously wrong with the app. Could you please point me to a row with an image that failed to upload? If you can refer to me to an audit log entry that would be easiest, but rowID and time of upload would work too.
Iโll also need to know in which column was the image, since you have multiple image columns.
Hi @Gil
Sorry we were playing around with the data trying to fix it. An example is row 4 in the google sheet, Image Name โSiteInspection_Files_/ELM.Image 1.125533.jpgโ. This is the same file as the hyperlink from my previous message. The problem has occurred previously in all Image columns, but the current example is column H = Image 1
I cant seem to do an audit log because we donโt have a corporate account.
I have been having similar issues with field users intermittently. Specifically with the Android Samsung Tab A 10.1โ. Any close up images are pixelated and blurred as well.
The image is captured and stored on the device, however the file name is not recorded in the table and does not show on any workflow reports.
I need test different camera apps with the device as it appears it could be a camera issue with the default Samsung camera.
When doing the same task with an iphone, the users / apps have no issues.
@Craig_Clancy1, About the blurry image, does the copy that is saved on the device looks better? What is the โImage upload sizeโ in your app setting (found in UX -> Option -> Forms)?
Do you get the same problem when selecting an image from the phoneโs gallery?
@Derek_Morgan, Do you know the time of upload of this image? It will help me find the audit log for this row.
Hi Gil
The latest was June 5, 2:55 PM (GMT +2).
Another example was May 26, 5:03 PM (GMT +2), In this case the file was called โSiteInspection_Files_/6.Image 1.150349.jpgโ.
In fact all the files in the drive folder โSiteInspection_Files_โ are examples of when this happened with time stamps on when the file was uploaded to the drive. If you need access to the drive, let me know who to share it with.
Thanks @Derek_Morgan,
I managed to locate the audit logs for these images and I can see something went wrong with the upload resulting in an empty file.
Iโm still trying to understand what went wrong.
Have you notice any interesting pattern when this is happening?
Is the user switching apps soon after taking the photo?
Is the internet connection spotty?
Also, would you mind trying turning off automatic updates (Behavior -> Offline/Sync) and letting me know if this is still happening? If you turn this setting off, users will have to press the sync button after every change they make.
I have had similar issues with android users. Tablet is version 5.1.1 and model no SM_T365.
User reported issues capturing images, the image was captured and saved mid-form but returned the user to blank field input once the sync was finished.
We have had trouble with this in the past with similar model.
Thanks, Sarah
Hi Gil
I will try the Offline/Sync option and let you know. I donโt think this will help though because I remember when it happened on my phone there wasnโt a preview of the photo in the UI form after I took the photo and before the automatic sync kicked in. It was like the app never got the photo from the phone. Once the app started working properly, I could see the photo preview in the app UI before the sync even happened.
Regards
Derek
Hi,
I have the same problem.
With my smartphone, I can take the photo and attach it directly. With the tablet I have to take the photo previously and then attach it. Both are Android systems.
I have tried to disable the fields you have indicated without success.
I have tried to decrease the resolution of the image, but without success.
When I take the photo with the tablet, I get an error message on Open Camera, but if I take the photo with Open Camera from Smartphone, no problem.
I hope I have given some more details.
Hi @MPollicino,
A few questions to help me understand the issue:
Hi @Gil,
And when does the error appears exactly? Is it after you take the photo but still in Open Camera? Or after going back to AppSheet?
The error appears when I take the photograph and is unable to return to Appsheet, while with the default camera it allows me to choose whether to proceed or discard. Previously with the default camera I did proceed but the image did not appear. A file in .jpg format was created in the folder projectname_Files_ and not in projectname_Images.
@MPollicino Thatโs strange.
Would you mind if I take a look at your app?
To enable me to do that please go to https://www.appsheet.com/account/account#_tab_acctConfig and check the โAllow AppSheet staff to access my apps for support and maintenanceโ checkbox.
Iโll also need your account ID, app name and name of the relevant table.
Would it be ok if I upload a picture for testing purposes?
The problem is caused by the update of OpenCamera from version 1.47.3 to version 1.48.3 for the Android 10 version; In fact, with Android 9 the communication between AppSheet (14.5) and OpenCamera has no problems, as Android 10 had no problems with the OpenCamera version (1.47.3) with AppSheet (14.5).
Now, I donโt have the opportunity to officially use another camera software, and I donโt even have the opportunity to downgrade. What solution can we adopt?
The problem is that, in the OpenCamera app, the permission to write to the folder is missing, as in the example visible in the photos.
**
Android 10, with OpenCamera version 1.48.3
**
**
Android 9, with OpenCamera version 1.48.3
**
When I updated Open Camera to Android 10, the news screen said:
Message 1:
As you can see, the main difference is in the app permissions. With Android 9, you have the opportunity to authorize Memory, with Android 10 no.
Can anyone help me?
Sorry, but as a new user I had to separate images.
The storage permissions makes sense. With the new scoped storage, apps donโt need any permissions to save media files.
Strangely I wasnโt able to reproduce on my device (Android 11, Open camera v1.48.3), have you tried enabling the Use Storage Access Framework option?
Also, what is the tabletโs model?
User | Count |
---|---|
15 | |
14 | |
8 | |
7 | |
4 |