-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Nearby not working as intended #5461
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
Comments
Interesting, this is working fine on my Android 14 device. |
nearby.mp4This has been partly fixed by PR#5418 , I'll just highlight the differences with the app available on Play Store. |
@RitikaPahwa4444 the problem here is that the app is asking for location permission but does not ask to turn on the location services (which it should do directly after permission is given, if they are off). I reported this in another issue as well, #5255 (comment). Does this happen even when the location services are on? |
This issue is a bit different from the one highlighted in that comment. That issue used to exist, I agree. I'll test for that too and post my observations there. For this issue, I'll share for all the cases I can think of. |
I think you are right, it's not dependant on whether the location services are on/off, because for my device it's working irrespective of the state of location services. I'll try to reproduce this on some other device / emulator |
Differences:
There might be a few more, I'll share if I find them. |
@RitikaPahwa4444 After a lot of digging, I found that in the cases you mentioned, the onclicklistener for SearchThisArea button was not being set, so no operations were being performed. I'll fix this and send a PR soon, to resolve this. |
Great. Thanks for taking the time to figure this out, @ShashwatKedia 🙂 |
@RitikaPahwa4444 could you confirm that the above PR works on your device as well, since you were the one who found this issue out ;) |
Hi @ShashwatKedia, thanks for the PR. I'm testing that branch, working great so far :) |
@RitikaPahwa4444 As the original reporter, do you think the PR is worth merging? :-) |
I'd tested that branch over a month ago and approved too, since it fixed this issue back then (I can test again if required) and we agreed on opening a separate ticket for a minor popup related issue (#5549). |
I could understand the PR has been long standing. If you're asking this since you plan on merging this, could you wait for the last two comments to be resolved? We could take the rest as fixes on top, as needed |
* Resolved merged conflicts * Resolved merge conflicts and updated workflow * Updated Location Flow and merged conflicts * Update flow and merge conflicts * Fixed LocationPicker's location flow * Removed redundant code from LocationPermissionsHelper * Fixed Explore fragment crashing and incorrect behaviour * Updated LocationPicker Flow * Fixed Nearby not working as intended * Final update to location flow of all maps * Added the reqested changes and fixed bugs * Resolved requested change in in-app camera location flow * Fixed In-app camera location flow * Resolved conflicts in ContributionsListFragment * Updated java doc as requested * Resolved nearby card dialog not being shown * Optimised LocationPermissionsHelper javadoc * Made requested changes for preference check * Added javadoc and requested comment for later reference * Implemented requested code changes * Fixed failing test due to changes made during PR * Added string resource for ExploreMapFragment * Changed string resource for rationale dialog * Added standard location flow information in LocationPermissionsHelper * Added javadoc for doNotAskForLocationPermission * Removed unused import * Updated javadoc * Removed values-yue-hant * Fix some merge conflict errors * Fix minor errors due to mergre conflicts * Fix some refactor errors * Fixed minor bug due to merging conflicts * Delete app/src/main/res/values-yue-hant directory * Final changes to NearbyParentFragment * Fixes #5686 map coordinates set to image coords * Removed some redundant code from recenterMap * Removed one test whose method no longer exists * Removed unused method from contract of nearby * Removed redundant method from NearbyParentFragment * nearby: add a FIXME about the possibly redudant code --------- Co-authored-by: Kaartic Sivaraam <kaartic.sivaraam@gmail.com>
Improve nearby-place search function for a multi-upload Enhance the depiction consistency of a multi-upload by ensuring that it corresponds to a single place Add javadoc Fixes Location related flow of the app commons-app#5256 , commons-app#5461, commons-app#5490 (commons-app#5494) * Resolved merged conflicts * Resolved merge conflicts and updated workflow * Updated Location Flow and merged conflicts * Update flow and merge conflicts * Fixed LocationPicker's location flow * Removed redundant code from LocationPermissionsHelper * Fixed Explore fragment crashing and incorrect behaviour * Updated LocationPicker Flow * Fixed Nearby not working as intended * Final update to location flow of all maps * Added the reqested changes and fixed bugs * Resolved requested change in in-app camera location flow * Fixed In-app camera location flow * Resolved conflicts in ContributionsListFragment * Updated java doc as requested * Resolved nearby card dialog not being shown * Optimised LocationPermissionsHelper javadoc * Made requested changes for preference check * Added javadoc and requested comment for later reference * Implemented requested code changes * Fixed failing test due to changes made during PR * Added string resource for ExploreMapFragment * Changed string resource for rationale dialog * Added standard location flow information in LocationPermissionsHelper * Added javadoc for doNotAskForLocationPermission * Removed unused import * Updated javadoc * Removed values-yue-hant * Fix some merge conflict errors * Fix minor errors due to mergre conflicts * Fix some refactor errors * Fixed minor bug due to merging conflicts * Delete app/src/main/res/values-yue-hant directory * Final changes to NearbyParentFragment * Fixes commons-app#5686 map coordinates set to image coords * Removed some redundant code from recenterMap * Removed one test whose method no longer exists * Removed unused method from contract of nearby * Removed redundant method from NearbyParentFragment * nearby: add a FIXME about the possibly redudant code --------- Co-authored-by: Kaartic Sivaraam <kaartic.sivaraam@gmail.com> Localisation updates from https://translatewiki.net. Remove the value-yue-hant file The file is not properly recognized by Android and we've actually codemapped it to yue. The translatewiki configuration has been done in the incorrect file. So, it is still being created. The following Gerrit change would correct it for updates after that change is merged. https://gerrit.wikimedia.org/r/c/translatewiki/+/1022508 For the time being remove it for the sake of release.
Closing this as #5494 has been merged. Feel free to reopen if I missed something that's left to be done. 🙂 |
Summary
Nearby used to display pins on the map. They are no longer visible. So, I can't initiate any uploads from Nearby. Moreover, the following features are also not working:
Moreover, the app often crashes or stops responding while trying the above features.
Steps to reproduce
Expected behaviour
The nearby pins should load, "Search this area" should load pins on other areas on Earth and tapping the list icon should show a list of nearby places.
Actual behaviour
Nearby pins do not load, nor do the "Search this area" button or the list icon work.
Device name
Redmi 5A
Android version
8.1.0
Commons app version
main and prodDebug
Device logs
No response
Screen-shots
No response
Would you like to work on the issue?
None
The text was updated successfully, but these errors were encountered: