{ "id": "106886", "key": "AC-1855", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2013-01-23T23:17:45.000+0000", "created": "2012-12-20T21:53:43.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:40:46.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "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.\r\n\r\nI 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.\r\n\r\n{code:javascript}\r\ndirectionsURL = 'http://maps.apple.com/?t=m&saddr=' + myLocation.latitude + ',' + myLocation.longitude + '&daddr=' + dest.lat + ',' + dest.lng;\r\n\r\nTi.UI.createWebView({\r\n url: directionsURL\r\n});\r\n{code}\r\n\r\nand from the iOS6 simulator log\r\n\r\n{panel}\r\n[DEBUG] New scheme: \r\n[DEBUG] New scheme: \r\n{panel}\r\n\r\nBTW, using\r\n\r\nTi.Platform.openURL(directionsURL);\r\n\r\nworks 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. \r\n\r\nAnd 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.", "attachment": [], "flagged": false, "summary": "iOS: In WebView maps.apple.com redirects to maps.google.com", "creator": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS 6 SDK 2.1.4.GA", "comment": { "comments": [ { "id": "235623", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Joe,\r\n\r\nThis 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", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-23T23:17:45.000+0000", "updated": "2013-01-23T23:17:45.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }