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

On iOS, open Google Maps if present, else open Apple Maps #25

Open
arhmnsh opened this issue May 22, 2019 · 6 comments
Open

On iOS, open Google Maps if present, else open Apple Maps #25

arhmnsh opened this issue May 22, 2019 · 6 comments

Comments

@arhmnsh
Copy link

arhmnsh commented May 22, 2019

Is it possible to open Google Maps if it is installed, else open Apple Maps?

Currently, if the provider is 'google' on iOS, and Google Maps is not installed, it opens Google Maps in browser, which isn't a good experience IMHO.

@brh55
Copy link
Owner

brh55 commented May 23, 2019

I completely agree with you! That would definitely improve the user experience if we only open apps available. Unfortunately, it's not currently implemented, but implementation would involve something like this:
https://stackoverflow.com/questions/47652375/check-if-google-maps-app-is-installed-in-react-native-ios

Afterward, the developer using the package would just need to add the URL schemes in their app configuration if you want to ensure this package can fall back on an app level.

If you feel up for the task, please give it a whirl! I'm a bit busy these days with personal things but will provide some guidance.

@nwaughachukwuma
Copy link
Contributor

@brh55 and @arhmnsh what's the status of this? I can make a PR with this addition. What do you think?

@nwaughachukwuma
Copy link
Contributor

@brh55 a PR has been submitted

@nwaughachukwuma
Copy link
Contributor

Anyone looking for a solution around this can use this fork

@daveyjones
Copy link

This is exactly the behavior I was looking for.

@lucksp
Copy link

lucksp commented Feb 3, 2023

I too am looking for this behavior

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

No branches or pull requests

5 participants