-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Android web is giving option to record audio and video #47028
Conversation
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / Safariweb.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested well, just a minor comment
@eh2077 I updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/danieldoglas in version: 9.0.21-0 🚀
|
QA mentioned this is still failing with #46336 |
@daledah I just check the expected behaviour again. I found that on mobile Android, we still have option to take a video - though ideally we should only show the media option |
@Beamanator So sorry for the trouble caused by this PR. I have to admit that we overlooked something. I think we'll have to rework this PR and it'll take sometime. Can you please help to revert this PR to unblock the deployment? |
@eh2077 thanks for the note! Just to be clear, did this PR cause a bigger problem that we were trying to solve? From what I can tell, it looks like the PR just failed to fix the original bug, but didn't cause any bigger problem If that's true, we don't need to block deployment on this & no need to revert the PR. But if there's something bigger I'm missing, please let me know! 😅 |
@Beamanator Yes, that's right. Then I think we only need to raise a follow-up PR to fix the missing case. cc @daledah |
🚀 Deployed to production by https://github.com/Beamanator in version: 9.0.21-4 🚀
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.0.21-4 🚀
|
I'll raise a follow up PR soon @eh2077 |
Still investigating, will update tomorrow |
I think it's the default behavior for Android MWeb to show the camera and camcorder options with a file that is not an image. I tried it with a simpler code and got the following result. web.mov@eh2077 what do you think? |
Any thoughts on that @eh2077, can we keep this moving to fix the original bug? |
@daledah Thanks for the comment! I agreed with you that it's the default behaviour of mobile browsers when specifying I checked MDN docs and found a note from https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file
Can we just set |
@eh2077 Do you mean that we will set accept="image/*" only in the case of Android mweb? |
@daledah I think we should pursue consistency among different mobile devices, both Android and iOS. Can you help to evaluate the feasibility of setting |
@eh2077 i'll update screenshots soon |
iOSios.moviOS-MWebios-mweb.movAndroidandroid.movAndroid-MWebandroid-mweb.mov@eh2077 I think setting accept='image/*' doesn't affect both native Android and iOS, and here are the screenshots. What do you think? |
@daledah Thanks for the testings. Unfortunately, I found that setting accept='image/*' won't allow to upload other files then, like pdf, see Screen.Recording.2024-09-05.at.9.44.07.PM.mov |
@daledah It seems there's no hard spec to allow us to disable the camera options on mobile browsers, see following SOs |
@daledah Can you try just set |
Details
Fixed Issues
$ #46336
PROPOSAL: #46336 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Screen.Recording.2024-08-08.at.23.45.12.mov
Android: mWeb Chrome
iOS: Native
ios.mov
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov