Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1855] iOS: In WebView maps.apple.com redirects to maps.google.com

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNot Our Bug
Resolution Date2013-01-23T23:17:45.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterJoe Falcone
AssigneeDaniel Sefton
Created2012-12-20T21:53:43.000+0000
Updated2016-03-08T07:40:46.000+0000

Description

If you open maps.apple.com in a WebView to, for example, get directions, you are redirected to maps.google.com. This would not be so bad except that now maps.google.com is putting up a "Download our New App" splash screen and making you skip that to continue to the directions. Our clients aren't too happy about that. I had heard that this was only a problem with the iOS Simulator, but I just tested it on an iOS 6 iPhone and had the redirect to maps.google.com happen.
directionsURL = 'http://maps.apple.com/?t=m&saddr=' + myLocation.latitude + ',' + myLocation.longitude + '&daddr=' + dest.lat + ',' + dest.lng;

Ti.UI.createWebView({
    url: directionsURL
});
and from the iOS6 simulator log {panel} [DEBUG] New scheme: http://maps.apple.com/?t=m&saddr=33.58000183105469,-117.75&daddr=33.5439,-117.7822> [DEBUG] New scheme: http://maps.google.com/?t=m&saddr=33.58000183105469,-117.75&daddr=33.5439,-117.7822> {panel} BTW, using Ti.Platform.openURL(directionsURL); works but leaves your application to invoke the Apple Maps app which our clients also do not like because folks then have to go through an awkward process to return to our app. And I know from speaking with Apple App Review team that they also don't like apps which force you to leave the app to do things like get directions.

Comments

  1. Daniel Sefton 2013-01-23

    Hi Joe, This is behavior governed by Apple and is out of our control. You can test this by pasting the following URL into your browser: http://maps.apple.com/?t=m&saddr=33.58000183105469,-117.75&daddr=33.5439,-117.7822

JSON Source