Skip to content
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

Universal links handling for places #4549

Conversation

jayesh15111988
Copy link

Phabricator:

Notes

  • Added support to open the universal link with place name and show the place details on map

Test Steps

Added universal link from test app and verified that Wikipedia app successfully open the map view with specified place name. Verified locally.

Screenshots/Videos

Wikipedia_places_accessor_demo_720.mov

@jayesh15111988 jayesh15111988 marked this pull request as draft June 27, 2023 07:50
@jayesh15111988 jayesh15111988 force-pushed the universal-links-handling-for-places branch from 3299dc2 to d53759b Compare June 27, 2023 07:51
@jayesh15111988 jayesh15111988 force-pushed the universal-links-handling-for-places branch from d53759b to 07cc9d5 Compare June 27, 2023 07:53
Copy link
Collaborator

@tonisevener tonisevener left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jayesh15111988 Thanks for fixing this! I found one bug, let me know what you think. The other changes look good to me.

@@ -470,7 +470,7 @@ class PlacesViewController: ViewController, UISearchBarDelegate, ArticlePopoverV
}

func performDefaultSearchIfNecessary(withRegion region: MKCoordinateRegion?) {
guard currentSearch == nil else {
guard currentSearch == nil, searchBar.text == nil else {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change necessary? I notice sometimes searchBar.text == "", and it's not performing the default search when it should. This change causes this bug:

  1. Simulate simulator location to something (Features menu > Location > Apple)
  2. Fresh install app
  3. Tap Places tab, tap "Enable location" in popup
  4. Tap "Allow while using app" in popup
  5. Map goes to Cupertino, but nearby places are not automatically searched anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants