Selecting Google Maps starts Uber on Android
See original GitHub issueHi,
when calling showLocation
like so on Android using "react-native-map-link": "^2.7.19",
showLocation({
latitude: data!.location.lat,
longitude: data!.location.lng,
title: 'Some TItle'
googleForceLatLon: true,
dialogTitle: 'Open in Maps'
dialogMessage: 'Which app would you like to use?',
cancelText: 'Cancel'
appsWhiteList: undefined,
});
I receive the following dialog:
When selecting Google Maps it opens Uber always:
This also happens when calling showLocation
like so:
showLocation({
latitude: data!.location.lat,
longitude: data!.location.lng,
title: 'Some TItle'
googleForceLatLon: true,
dialogTitle: 'Open in Maps'
dialogMessage: 'Which app would you like to use?',
cancelText: 'Cancel'
appsWhiteList: ['google-maps'],
});
or
showLocation({
latitude: data!.location.lat,
longitude: data!.location.lng,
title: 'Some TItle'
googleForceLatLon: true,
dialogTitle: 'Open in Maps'
dialogMessage: 'Which app would you like to use?',
cancelText: 'Cancel'
appsWhiteList: ['google-maps'],
app: 'google-maps'
});
Any hint what I’m doing wrong?
React-Native info:
user$ npx react-native info
info Fetching system and libraries information...
System:
OS: macOS 11.0.1
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 251.82 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 14.12.0 - /usr/local/bin/node
Yarn: 1.22.5 - /usr/local/bin/yarn
npm: 6.14.8 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.9.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.0, DriverKit 20.0, macOS 11.0, tvOS 14.0, watchOS 7.0
Android SDK:
API Levels: 28, 29, 30
Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.0
System Images: android-28 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom_64, android-30 | Google APIs Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: 4.0 AI-193.6911.18.40.6514223
Xcode: 12.0/12A8169g - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_261 - /usr/bin/javac
Python: 2.7.16 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.1 => 17.0.1
react-native: 0.63.3 => 0.63.3
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:6 (2 by maintainers)
Top Results From Across the Web
How to Use Google Map with Uber Driver App - YouTube
This video describes how to use Google Maps in Uber. Google maps for Uber driver. You can choose Google Map instead of Uber...
Read more >How to Order an Uber Ride From Google Maps - Lifewire
How to Order an Uber Through Google Maps · In Google Maps, search for the address or the name of your desired destination,...
Read more >Clicking locations keeps opening Uber instead of Maps. I have ...
Clicking locations keeps opening Uber instead of Maps. ... Then click a link with location info and see if if allows you to...
Read more >Uber app opens when I click shared google map link
Go to uber app info page in settings. Click on advanced. Click open by default. Clear defaults. ... "Clear default" button is grayed...
Read more >Turning navigation features on and off | Driving & Delivering
Turning navigation features on and off · 1. Select ACCOUNT in the Uber app · 2. Tap SETTINGS > NAVIGATION > AUTO-NAVIGATE ·...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Unfortunately the Uber app on Android hijacks the maps.google.com URL. Unlike on iOS, where you need to verify your app belongs to a certain domain by uploading a
apple-app-site-association
file to the server, on Android anyone can claim a certain domain belongs to their app.So there’s not much we can do about this unfortunately… Hopefully Google fixes this at some point, seems like a big security problem.
Solved by #158