-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 location Permission for Desktop #57660
Fix location Permission for Desktop #57660
Conversation
…x/52668-delay-2nd-location-setting
…x/52668-delay-2nd-location-setting
…x/52668-delay-2nd-location-setting
…x/52668-delay-2nd-location-setting
…x/52668-delay-2nd-location-setting
…x/52668-delay-2nd-location-setting
Co-authored-by: Carlos Martins <luacmartins@gmail.com>
Co-authored-by: c3024 <102477862+c3024@users.noreply.github.com>
…x/52668-delay-2nd-location-setting
Update Most of the requested changes has been applied. I have encountered an issue in Safari mWeb where the location permission modal always appears, even though it was previously allowed. I am unable to debug Safari mWeb at the moment due to a similar issue in Slack. |
Thanks for the update @wildan-m! Let us know once you've been able to address the mWeb safari issue |
I had the same problem. It worked for me when I opened the console in Safari with the staging website on the iOS simulator and then opened the dev link in the same tab. |
…x/52668-delay-2nd-location-setting
It is the same on staging too. It appears to be an iOS Safari quirk that cannot be easily fixed. I think we should handle it separately. Screen.Recording.2025-03-05.at.11.14.00.AM.mov |
Sounds good. Let's continue with review here then |
Reviewer Checklist
Screenshots/VideosAndroid: NativelocationAndroid.movAndroid: mWeb ChromelocationAndroidmWeb.moviOS: NativelocationiOS.moviOS: mWeb SafarilocationiOSmWeb.movMacOS: Chrome / SafarilocationChrome.movMacOS: DesktoplocationDesktop.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.
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/luacmartins in version: 9.1.10-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.1.10-6 🚀
|
Explanation of Change
Prompt settings for desktop when the location service not enabled and automatically hide LocationPermissionModal when it's enabled
Fixed Issues
$ #52668
PROPOSAL: #52668 (comment)
Tests
Pre-condition
1. Reset App/Site Permission
Desktop
Web Chrome
Access
chrome://settings/content/location
Search staging.new.expensify.com, dev.new.expensify.com:8082
Remove delete the entries to reset the permission (if any)
Chrome mWeb
Settings > Advanced > Site settings > Location, then remove expensify sites entry
Native iOS
Real Device
Open Settings:
Navigate to Privacy Settings:
Find Expensify
Reset Permission:
iOS Simulator
Execute in terminal
safari iOS
Real Device
Open Settings:
Navigate to Privacy Settings:
Find Safari:
Reset Permission:
iOS Simulator
xcrun simctl privacy booted reset all com.apple.mobilesafari
Native Android
Ask every time
2. Reset nvp_lastLocalPermissionPrompt key
Settings > Troubleshoot > Clear cache and restart or if you a developer, you can selectively reset this onyx key
Onyx.merge('nvp_lastLocalPermissionPrompt', null)
GCP_GEOLOCATION_API_KEY
correctly configured in the .envSteps:
Desktop
receiptGpsPoints
in the payload (Tips: Find console log with[info] [API] Called API write - {"command":"RequestMoney"
prefix)receiptGpsPoints
in the payload.Web/mWeb Chrome / Native Ios / Native Android
Continue
Allow while visiting the App / Allow while using App / Allow while visiting this site
receiptGpsPoints
in the payload (Tips: Find console log with[info] [API] Called API write - {"command":"RequestMoney"
prefix)receiptGpsPoints
in the payload.Note
In the safari mWeb, the location permission modal will always be shown, even when the location is enabled; this is a known separate issue.
Offline tests
Same as test
QA Steps
Same as test
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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
Kapture.2025-03-03.at.11.42.20.mp4
Android: mWeb Chrome
Kapture.2025-03-03.at.12.00.34.mp4
iOS: Native
Kapture.2025-03-03.at.11.16.39.mp4
iOS: mWeb Safari
MacOS: Chrome / Safari
Kapture.2025-03-03.at.10.51.18.mp4
MacOS: Desktop
Kapture.2025-03-03.at.10.37.24.mp4