Hi all,

the ZTE Open C is a fine Firefox OS developer device as you can unlock it
and flash it to the latest and greatest Gecko and Gaia. The only thing that
I've found not to be working when I do that is Geolocation. This is
apparently caused by the flashing process replacing QC RIL with MozRIL,
which apart from AGPS no longer working, is otherwise fine by me.

As I understand it we don't provide AGPS support in our own RIL (although
I'm curious as to why), but I can't think of a reason not to use MLS on
those devices. However when I tried to use these prefs, I failed:

pref("geo.provider.use_mls", true);
pref("geo.cell.scan", true);
pref("geo.wifi.uri", "
https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%";);
pref("geo.enabled", true);

I got these errors in the log instead:

E/GeckoConsole(  283): [JavaScript Error: "NS_ERROR_XPC_CANT_CREATE_WN:
Component returned failure code: 0x80570019 (NS_ERROR_XPC_CANT_CREATE_WN)
[nsIJSCID.getService]" {file: "jar:file:///system/b2g/omni.
ja!/components/NetworkGeolocationProvider.js" line: 332}]
E/GeckoConsole(  283): [JavaScript Error: "NS_ERROR_XPC_CANT_CREATE_WN:
Component returned failure code: 0x80570019 (NS_ERROR_XPC_CANT_CREATE_WN)
[nsIJSCID.getService]" {file:
"jar:file:///system/b2g/omni.ja!/components/NetworkGeolocationProvider.js"
line: 307}]
I/Gecko   (  283): settings 'handle' callback threw an exception, dropping:
[Exception... "Component returned failure code: 0x80570019
(NS_ERROR_XPC_CANT_CREATE_WN) [nsIJSCID.getService]"  nsresult: "0x80570019
(NS_ERROR_XPC_CANT_CREATE_WN)"  location: "JS frame ::
jar:file:///system/b2g/omni.ja!/components/NetworkGeolocationProvider.js ::
WifiGeoPositionProvider.prototype.startup/settingsCallback.handle :: line
307"  data: no]

Does anyone here know how can I properly configure the phone to use MLS?

I have more details about my attempts to get it working in a dev-b2g thread
if you are interested:
https://groups.google.com/d/msg/mozilla.dev.b2g/q7Dp4NOxySo/IsvgKrhVQlkJ

Thanks,
Panos
_______________________________________________
dev-geolocation mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-geolocation

Reply via email to