[TIMOB-8165] MobileWeb: Ti.Geolocation.forwardGeocoder() not working
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-03-21T15:24:39.000+0000 |
Affected Version/s | Release 2.0.0 |
Fix Version/s | Release 2.0.0, Sprint 2012-06 |
Components | MobileWeb |
Labels | mw-list |
Reporter | Tony Lukasavage |
Assignee | Chris Barber |
Created | 2012-03-21T13:59:47.000+0000 |
Updated | 2017-03-14T18:12:05.000+0000 |
Description
Affects 2.0.0.v20120321134756
Problem
As the title states, I can getTi.Geolocation.forwardGeocoder()
to work under no circumstances on any platforms. All errors indicate "Not Found". This does not mean that the specified location cannot be found, as I've tried many. I believe that it is occurring because the underlying URL seems to be looking for
api.appcelerator.com
when it should be looking for
api.appcelerator.net
Test Case
This will give "not Found" errors on all platforms
var win = Ti.UI.createWindow({
backgroundColor: '#fff',
fullscreen: false,
exitOnClose: true
});
Ti.Geolocation.forwardGeocoder('Paris, France', function(e) {
if (Ti.Platform.osname === 'mobileweb') {
console.log(e);
} else {
Ti.API.info(e);
}
});
win.open();
Proposed Solution
make the service use the domainapi.appcelerator.net
, not api.appcelerator.com
We need to change api.appcelerator.com to api.appcelerator.net.
I see this was changed to Mobilweb, but just to be clear, it seems to affect all platforms. For some reason
\*.appcelerator.com
now redirects to\*.appcelerator.org
. Is this perhaps the source of this problem, and perhaps others?We have scanned the code and we use "api.appcelerator.net" in both iOS and Android platforms.
Pull Request: https://github.com/appcelerator/titanium_mobile/pull/1785
Side Note: Ti.API.log works on mobile web, no need to case it out.
Closing ticket as fixed.