Closed
Bug 1125106
Opened 11 years ago
Closed 11 years ago
Firefox Android can't open maps or directions app
Categories
(Web Compatibility :: Site Reports, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: foxfire, Unassigned)
References
()
Details
(Whiteboard: [country-uk] [js])
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0
Build ID: 20150114125146
Steps to reproduce:
Visited (for example) http://ipswich.suffolkcamra.co.uk/pubs/pub/870 (note: this URL may change in the near future to http://www.suffolkcamra.co.uk/pubs/pub/870 as the site is currently under development and will go live when ready)
Click on the "get directions" button
Either type in a starting location or click "use GPS" button (and permit access if necessary).
Actual results:
Firefox displays a toast saying "Couldn't find an application to open this link | Search"
Clicking "Search" takes me to the Play store which displays a message: "No results found for comgooglemaps-x-callback".
Expected results:
Either the browser should have taken me to Google directions web page: https://www.google.co.uk/maps/dir/ips3+0nh,suffolk/52.327203,1.680994
(exact URL depends upon entered start location) which is the way Firefox correctly behaves on the desktop
Or it should have opened the Google Maps app and shown me directions between the two locations, or popped up a chooser to decide what app to handle it with, which is the way the default (Chrome) browser behaves.
It appears to me that Firefox is correctly recognising that it should be handling the URL by offering it to an app but is incorrectly assigning the app.
Comment 1•11 years ago
|
||
comgooglemaps-x-callback is a URL scheme for iOS, this sounds like a tech evangelism issue?
Updated•11 years ago
|
Status: UNCONFIRMED → NEW
Component: General → Mobile
Ever confirmed: true
OS: Linux → Android
Product: Firefox for Android → Tech Evangelism
Hardware: x86_64 → All
![]() |
||
Comment 2•11 years ago
|
||
The get direction button is an input with an onclick event
<input class="floatleft smart"
onclick="javascript:directions('pub',52.327203,1.680994)"
value="Get directions" type="button">
with inside combined.js
function directions(a, c, b) {
popup.load('/pubs/directionsPopup.html', function () {
$('#type').html(a);
$('#end').val(c + ',' + b);
applyWebFonts();
popup.slideDown('slow');
$('#start').focus()
});
if (!geo_js_loaded) {
$.getScript('/pubs/javascript/Standard/optional/geo.js', function () {
if (geo_position_js.init()) {
$('.geobutton').show()
}
var d = true
})
}
}
In the pop up window there is a form redirecting to Google. When emulating Firefox Android and typing london for example, it is working and we are redirected to the Google instructions.
The input form with the location has an input button:
<input value="Go" class="smartsmall" onclick="calcRoute();return(false);" type="submit">
The function calcRoute is defined by
function calcRoute(a) {
var c = $('#start').val();
var b = $('#end').val();
if (c === '') {
alert('Please type your location');
return
}
if (!a) {
c = c.replace(/ /g, '+') + ',suffolk'
}
$.ajax({
url: '/pubs/cgi-bin/counter.cgi?directions&0',
success: function (d) {
window.location = 'https://www.google.co.uk/maps/dir/' + c + '/' + b
}
})
}
I was not able to reproduce and the JS doesn't seem to have anything weird.
Someone else can reproduce ?
Reporter | ||
Comment 3•11 years ago
|
||
This is curious. Revisiting the problem (mainly to definitively exclude any problem with the fact that the URL was being generated by Javascript) and I find that it's now working pretty much as expected. The browser transfers to Google's directions site and I notice a small android icon in the URL bar which itself launches the mapping app.
I can only surmise that my device had some odd default set which has been changed by something (perhaps when I rebooted it last night). That being the case I'm going to close this and apologise for wasting everybody's time with it.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
Assignee | ||
Updated•6 years ago
|
Product: Tech Evangelism → Web Compatibility
Assignee | ||
Updated•1 year ago
|
Component: Mobile → Site Reports
You need to log in
before you can comment on or make changes to this bug.
Description
•