Error getting location on IBM MobileFirst Platform











up vote
0
down vote

favorite












I'm developing a mobile application on ibm mobile first platform. I am using version 7.0. I'm trying to get the Location information of the Android device, but although I tried several methods, I didn't get the location information.
My permissions in android manifest file are correct and complete. My code and the logcat errors I got below. Thanks.



My codes:



var showPosition = function(position) {
WL.Logger.debug("got a position");
var latitude = Number(position.coords.latitude).toFixed(2);
var longitude = Number(position.coords.longitude).toFixed(2);
alert('<b>Longitude:</b> ' + position.coords.longitude + '<b>Latitude:</b> ' + position.coords.latitude);
//$("#currentLocation").text(latitude + " / " + longitude);

};

var positionError = function(err) {
WL.Logger.debug("failed to get a position");
$("#status").text("position error" + err);

};

WL.Device.Geo.acquirePosition(showPosition, positionError, {
timeout : 30000,
enableHighAccuracy: true,
maximumAge:15000
});


Logcat Erros:



V/GpsLocationProvider(  918): reportStatus status: 3
V/GpsLocationProvider( 918): reportStatus status: 1
I/System.out( 3766): IntentService[CrashUploaderService] calls detatch()
I/com.dropbox.android.exception.d( 3766): Error uploading log:
I/com.dropbox.android.exception.d( 3766): dbxyzptlk.db240408.I.h:
javax.net.ssl.SSLPeerUnverifiedException: No peer certificate
I/com.dropbox.android.exception.d( 3766): at
dbxyzptlk.db240408.H.y.a(panda.py:424)
I/com.dropbox.android.exception.d( 3766): at
dbxyzptlk.db240408.H.y.a(panda.py:346)
I/com.dropbox.android.exception.d( 3766): at
dbxyzptlk.db240408.L.K.a(panda.py:472)
I/com.dropbox.android.exception.d( 3766): at
com.dropbox.android.exception.d.a(panda.py:129)
I/com.dropbox.android.exception.d( 3766): at
com.dropbox.android.exception.d.a(panda.py:52)
I/com.dropbox.android.exception.d( 3766): at
com.dropbox.android.exception.CrashUploaderService.onHandleIntent
(panda.py:33)
I/com.dropbox.android.exception.d( 3766): at
android.app.IntentService$ServiceHandler.handleMessage
(IntentService.java:65)
I/com.dropbox.android.exception.d( 3766): at
android.os.Handler.dispatchMessage(Handler.java:102)
I/com.dropbox.android.exception.d( 3766): at
android.os.Looper.loop(Looper.java:145)
I/com.dropbox.android.exception.d( 3766): at
android.os.HandlerThread.run(HandlerThread.java:61)
I/com.dropbox.android.exception.d( 3766): Caused by:
javax.net.ssl.SSLPeerUnverifiedException: No peer certificate
I/com.dropbox.android.exception.d( 3766): at
com.android.org.conscrypt.SSLNullSession.getPeerCertificates
(SSLNullSession.java:104)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.conn.ssl.AbstractVerifier.verify (AbstractVerifier.java:93)
I/com.dropbox.android.exception.d( 3766): at
dbxyzptlk.db240408.L.Q.createSocket(panda.py:173)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection
(DefaultClientConnectionOperator.java:214)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.impl.conn.AbstractPoolEntry.open
(AbstractPoolEntry.java:167)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.impl.conn.AbstractPooledConnAdapter.open
(AbstractPooledConnAdapter.java:125)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.impl.client.DefaultRequestDirector.executeOriginal
(DefaultRequestDirector.java:1312)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.impl.client.DefaultRequestDirector.execute
(DefaultRequestDirector.java:702)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.impl.client.AbstractHttpClient.execute
(AbstractHttpClient.java:694)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.impl.client.AbstractHttpClient.execute
(AbstractHttpClient.java:516)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.impl.client.AbstractHttpClient.execute
(AbstractHttpClient.java:494)
I/com.dropbox.android.exception.d( 3766): at
dbxyzptlk.db240408.H.y.a(panda.py:394)
I/com.dropbox.android.exception.d( 3766): ... 9 more









share|improve this question







New contributor




Vahap Burhan Demir is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1




    What if you go to Settings -> Apps -> <your application name> -> Permissions and enable location permission ( if it is not there already)? Also, what if you try the application out side a building - assuming this is an issue getting geo coordinates.
    – Vivin K
    Nov 5 at 7:18










  • Thanks for your reply. There is location permission for this application my device. I also have GPS signals in my current environment.
    – Vahap Burhan Demir
    Nov 5 at 7:25










  • Mr. Vivin, as you said, was able to get the location information when I was out of the building. Thank you for your help.
    – Vahap Burhan Demir
    Nov 5 at 8:46










  • Try changing location modes such as High accuracy ,battery saving and device only ,you might get location inside building
    – manjunath kallannavar
    Nov 5 at 10:59















up vote
0
down vote

favorite












I'm developing a mobile application on ibm mobile first platform. I am using version 7.0. I'm trying to get the Location information of the Android device, but although I tried several methods, I didn't get the location information.
My permissions in android manifest file are correct and complete. My code and the logcat errors I got below. Thanks.



My codes:



var showPosition = function(position) {
WL.Logger.debug("got a position");
var latitude = Number(position.coords.latitude).toFixed(2);
var longitude = Number(position.coords.longitude).toFixed(2);
alert('<b>Longitude:</b> ' + position.coords.longitude + '<b>Latitude:</b> ' + position.coords.latitude);
//$("#currentLocation").text(latitude + " / " + longitude);

};

var positionError = function(err) {
WL.Logger.debug("failed to get a position");
$("#status").text("position error" + err);

};

WL.Device.Geo.acquirePosition(showPosition, positionError, {
timeout : 30000,
enableHighAccuracy: true,
maximumAge:15000
});


Logcat Erros:



V/GpsLocationProvider(  918): reportStatus status: 3
V/GpsLocationProvider( 918): reportStatus status: 1
I/System.out( 3766): IntentService[CrashUploaderService] calls detatch()
I/com.dropbox.android.exception.d( 3766): Error uploading log:
I/com.dropbox.android.exception.d( 3766): dbxyzptlk.db240408.I.h:
javax.net.ssl.SSLPeerUnverifiedException: No peer certificate
I/com.dropbox.android.exception.d( 3766): at
dbxyzptlk.db240408.H.y.a(panda.py:424)
I/com.dropbox.android.exception.d( 3766): at
dbxyzptlk.db240408.H.y.a(panda.py:346)
I/com.dropbox.android.exception.d( 3766): at
dbxyzptlk.db240408.L.K.a(panda.py:472)
I/com.dropbox.android.exception.d( 3766): at
com.dropbox.android.exception.d.a(panda.py:129)
I/com.dropbox.android.exception.d( 3766): at
com.dropbox.android.exception.d.a(panda.py:52)
I/com.dropbox.android.exception.d( 3766): at
com.dropbox.android.exception.CrashUploaderService.onHandleIntent
(panda.py:33)
I/com.dropbox.android.exception.d( 3766): at
android.app.IntentService$ServiceHandler.handleMessage
(IntentService.java:65)
I/com.dropbox.android.exception.d( 3766): at
android.os.Handler.dispatchMessage(Handler.java:102)
I/com.dropbox.android.exception.d( 3766): at
android.os.Looper.loop(Looper.java:145)
I/com.dropbox.android.exception.d( 3766): at
android.os.HandlerThread.run(HandlerThread.java:61)
I/com.dropbox.android.exception.d( 3766): Caused by:
javax.net.ssl.SSLPeerUnverifiedException: No peer certificate
I/com.dropbox.android.exception.d( 3766): at
com.android.org.conscrypt.SSLNullSession.getPeerCertificates
(SSLNullSession.java:104)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.conn.ssl.AbstractVerifier.verify (AbstractVerifier.java:93)
I/com.dropbox.android.exception.d( 3766): at
dbxyzptlk.db240408.L.Q.createSocket(panda.py:173)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection
(DefaultClientConnectionOperator.java:214)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.impl.conn.AbstractPoolEntry.open
(AbstractPoolEntry.java:167)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.impl.conn.AbstractPooledConnAdapter.open
(AbstractPooledConnAdapter.java:125)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.impl.client.DefaultRequestDirector.executeOriginal
(DefaultRequestDirector.java:1312)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.impl.client.DefaultRequestDirector.execute
(DefaultRequestDirector.java:702)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.impl.client.AbstractHttpClient.execute
(AbstractHttpClient.java:694)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.impl.client.AbstractHttpClient.execute
(AbstractHttpClient.java:516)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.impl.client.AbstractHttpClient.execute
(AbstractHttpClient.java:494)
I/com.dropbox.android.exception.d( 3766): at
dbxyzptlk.db240408.H.y.a(panda.py:394)
I/com.dropbox.android.exception.d( 3766): ... 9 more









share|improve this question







New contributor




Vahap Burhan Demir is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1




    What if you go to Settings -> Apps -> <your application name> -> Permissions and enable location permission ( if it is not there already)? Also, what if you try the application out side a building - assuming this is an issue getting geo coordinates.
    – Vivin K
    Nov 5 at 7:18










  • Thanks for your reply. There is location permission for this application my device. I also have GPS signals in my current environment.
    – Vahap Burhan Demir
    Nov 5 at 7:25










  • Mr. Vivin, as you said, was able to get the location information when I was out of the building. Thank you for your help.
    – Vahap Burhan Demir
    Nov 5 at 8:46










  • Try changing location modes such as High accuracy ,battery saving and device only ,you might get location inside building
    – manjunath kallannavar
    Nov 5 at 10:59













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I'm developing a mobile application on ibm mobile first platform. I am using version 7.0. I'm trying to get the Location information of the Android device, but although I tried several methods, I didn't get the location information.
My permissions in android manifest file are correct and complete. My code and the logcat errors I got below. Thanks.



My codes:



var showPosition = function(position) {
WL.Logger.debug("got a position");
var latitude = Number(position.coords.latitude).toFixed(2);
var longitude = Number(position.coords.longitude).toFixed(2);
alert('<b>Longitude:</b> ' + position.coords.longitude + '<b>Latitude:</b> ' + position.coords.latitude);
//$("#currentLocation").text(latitude + " / " + longitude);

};

var positionError = function(err) {
WL.Logger.debug("failed to get a position");
$("#status").text("position error" + err);

};

WL.Device.Geo.acquirePosition(showPosition, positionError, {
timeout : 30000,
enableHighAccuracy: true,
maximumAge:15000
});


Logcat Erros:



V/GpsLocationProvider(  918): reportStatus status: 3
V/GpsLocationProvider( 918): reportStatus status: 1
I/System.out( 3766): IntentService[CrashUploaderService] calls detatch()
I/com.dropbox.android.exception.d( 3766): Error uploading log:
I/com.dropbox.android.exception.d( 3766): dbxyzptlk.db240408.I.h:
javax.net.ssl.SSLPeerUnverifiedException: No peer certificate
I/com.dropbox.android.exception.d( 3766): at
dbxyzptlk.db240408.H.y.a(panda.py:424)
I/com.dropbox.android.exception.d( 3766): at
dbxyzptlk.db240408.H.y.a(panda.py:346)
I/com.dropbox.android.exception.d( 3766): at
dbxyzptlk.db240408.L.K.a(panda.py:472)
I/com.dropbox.android.exception.d( 3766): at
com.dropbox.android.exception.d.a(panda.py:129)
I/com.dropbox.android.exception.d( 3766): at
com.dropbox.android.exception.d.a(panda.py:52)
I/com.dropbox.android.exception.d( 3766): at
com.dropbox.android.exception.CrashUploaderService.onHandleIntent
(panda.py:33)
I/com.dropbox.android.exception.d( 3766): at
android.app.IntentService$ServiceHandler.handleMessage
(IntentService.java:65)
I/com.dropbox.android.exception.d( 3766): at
android.os.Handler.dispatchMessage(Handler.java:102)
I/com.dropbox.android.exception.d( 3766): at
android.os.Looper.loop(Looper.java:145)
I/com.dropbox.android.exception.d( 3766): at
android.os.HandlerThread.run(HandlerThread.java:61)
I/com.dropbox.android.exception.d( 3766): Caused by:
javax.net.ssl.SSLPeerUnverifiedException: No peer certificate
I/com.dropbox.android.exception.d( 3766): at
com.android.org.conscrypt.SSLNullSession.getPeerCertificates
(SSLNullSession.java:104)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.conn.ssl.AbstractVerifier.verify (AbstractVerifier.java:93)
I/com.dropbox.android.exception.d( 3766): at
dbxyzptlk.db240408.L.Q.createSocket(panda.py:173)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection
(DefaultClientConnectionOperator.java:214)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.impl.conn.AbstractPoolEntry.open
(AbstractPoolEntry.java:167)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.impl.conn.AbstractPooledConnAdapter.open
(AbstractPooledConnAdapter.java:125)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.impl.client.DefaultRequestDirector.executeOriginal
(DefaultRequestDirector.java:1312)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.impl.client.DefaultRequestDirector.execute
(DefaultRequestDirector.java:702)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.impl.client.AbstractHttpClient.execute
(AbstractHttpClient.java:694)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.impl.client.AbstractHttpClient.execute
(AbstractHttpClient.java:516)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.impl.client.AbstractHttpClient.execute
(AbstractHttpClient.java:494)
I/com.dropbox.android.exception.d( 3766): at
dbxyzptlk.db240408.H.y.a(panda.py:394)
I/com.dropbox.android.exception.d( 3766): ... 9 more









share|improve this question







New contributor




Vahap Burhan Demir is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I'm developing a mobile application on ibm mobile first platform. I am using version 7.0. I'm trying to get the Location information of the Android device, but although I tried several methods, I didn't get the location information.
My permissions in android manifest file are correct and complete. My code and the logcat errors I got below. Thanks.



My codes:



var showPosition = function(position) {
WL.Logger.debug("got a position");
var latitude = Number(position.coords.latitude).toFixed(2);
var longitude = Number(position.coords.longitude).toFixed(2);
alert('<b>Longitude:</b> ' + position.coords.longitude + '<b>Latitude:</b> ' + position.coords.latitude);
//$("#currentLocation").text(latitude + " / " + longitude);

};

var positionError = function(err) {
WL.Logger.debug("failed to get a position");
$("#status").text("position error" + err);

};

WL.Device.Geo.acquirePosition(showPosition, positionError, {
timeout : 30000,
enableHighAccuracy: true,
maximumAge:15000
});


Logcat Erros:



V/GpsLocationProvider(  918): reportStatus status: 3
V/GpsLocationProvider( 918): reportStatus status: 1
I/System.out( 3766): IntentService[CrashUploaderService] calls detatch()
I/com.dropbox.android.exception.d( 3766): Error uploading log:
I/com.dropbox.android.exception.d( 3766): dbxyzptlk.db240408.I.h:
javax.net.ssl.SSLPeerUnverifiedException: No peer certificate
I/com.dropbox.android.exception.d( 3766): at
dbxyzptlk.db240408.H.y.a(panda.py:424)
I/com.dropbox.android.exception.d( 3766): at
dbxyzptlk.db240408.H.y.a(panda.py:346)
I/com.dropbox.android.exception.d( 3766): at
dbxyzptlk.db240408.L.K.a(panda.py:472)
I/com.dropbox.android.exception.d( 3766): at
com.dropbox.android.exception.d.a(panda.py:129)
I/com.dropbox.android.exception.d( 3766): at
com.dropbox.android.exception.d.a(panda.py:52)
I/com.dropbox.android.exception.d( 3766): at
com.dropbox.android.exception.CrashUploaderService.onHandleIntent
(panda.py:33)
I/com.dropbox.android.exception.d( 3766): at
android.app.IntentService$ServiceHandler.handleMessage
(IntentService.java:65)
I/com.dropbox.android.exception.d( 3766): at
android.os.Handler.dispatchMessage(Handler.java:102)
I/com.dropbox.android.exception.d( 3766): at
android.os.Looper.loop(Looper.java:145)
I/com.dropbox.android.exception.d( 3766): at
android.os.HandlerThread.run(HandlerThread.java:61)
I/com.dropbox.android.exception.d( 3766): Caused by:
javax.net.ssl.SSLPeerUnverifiedException: No peer certificate
I/com.dropbox.android.exception.d( 3766): at
com.android.org.conscrypt.SSLNullSession.getPeerCertificates
(SSLNullSession.java:104)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.conn.ssl.AbstractVerifier.verify (AbstractVerifier.java:93)
I/com.dropbox.android.exception.d( 3766): at
dbxyzptlk.db240408.L.Q.createSocket(panda.py:173)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection
(DefaultClientConnectionOperator.java:214)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.impl.conn.AbstractPoolEntry.open
(AbstractPoolEntry.java:167)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.impl.conn.AbstractPooledConnAdapter.open
(AbstractPooledConnAdapter.java:125)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.impl.client.DefaultRequestDirector.executeOriginal
(DefaultRequestDirector.java:1312)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.impl.client.DefaultRequestDirector.execute
(DefaultRequestDirector.java:702)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.impl.client.AbstractHttpClient.execute
(AbstractHttpClient.java:694)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.impl.client.AbstractHttpClient.execute
(AbstractHttpClient.java:516)
I/com.dropbox.android.exception.d( 3766): at
org.apache.http.impl.client.AbstractHttpClient.execute
(AbstractHttpClient.java:494)
I/com.dropbox.android.exception.d( 3766): at
dbxyzptlk.db240408.H.y.a(panda.py:394)
I/com.dropbox.android.exception.d( 3766): ... 9 more






jquery geolocation location ibm-mobilefirst






share|improve this question







New contributor




Vahap Burhan Demir is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




Vahap Burhan Demir is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




Vahap Burhan Demir is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Nov 5 at 7:06









Vahap Burhan Demir

1




1




New contributor




Vahap Burhan Demir is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Vahap Burhan Demir is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Vahap Burhan Demir is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 1




    What if you go to Settings -> Apps -> <your application name> -> Permissions and enable location permission ( if it is not there already)? Also, what if you try the application out side a building - assuming this is an issue getting geo coordinates.
    – Vivin K
    Nov 5 at 7:18










  • Thanks for your reply. There is location permission for this application my device. I also have GPS signals in my current environment.
    – Vahap Burhan Demir
    Nov 5 at 7:25










  • Mr. Vivin, as you said, was able to get the location information when I was out of the building. Thank you for your help.
    – Vahap Burhan Demir
    Nov 5 at 8:46










  • Try changing location modes such as High accuracy ,battery saving and device only ,you might get location inside building
    – manjunath kallannavar
    Nov 5 at 10:59














  • 1




    What if you go to Settings -> Apps -> <your application name> -> Permissions and enable location permission ( if it is not there already)? Also, what if you try the application out side a building - assuming this is an issue getting geo coordinates.
    – Vivin K
    Nov 5 at 7:18










  • Thanks for your reply. There is location permission for this application my device. I also have GPS signals in my current environment.
    – Vahap Burhan Demir
    Nov 5 at 7:25










  • Mr. Vivin, as you said, was able to get the location information when I was out of the building. Thank you for your help.
    – Vahap Burhan Demir
    Nov 5 at 8:46










  • Try changing location modes such as High accuracy ,battery saving and device only ,you might get location inside building
    – manjunath kallannavar
    Nov 5 at 10:59








1




1




What if you go to Settings -> Apps -> <your application name> -> Permissions and enable location permission ( if it is not there already)? Also, what if you try the application out side a building - assuming this is an issue getting geo coordinates.
– Vivin K
Nov 5 at 7:18




What if you go to Settings -> Apps -> <your application name> -> Permissions and enable location permission ( if it is not there already)? Also, what if you try the application out side a building - assuming this is an issue getting geo coordinates.
– Vivin K
Nov 5 at 7:18












Thanks for your reply. There is location permission for this application my device. I also have GPS signals in my current environment.
– Vahap Burhan Demir
Nov 5 at 7:25




Thanks for your reply. There is location permission for this application my device. I also have GPS signals in my current environment.
– Vahap Burhan Demir
Nov 5 at 7:25












Mr. Vivin, as you said, was able to get the location information when I was out of the building. Thank you for your help.
– Vahap Burhan Demir
Nov 5 at 8:46




Mr. Vivin, as you said, was able to get the location information when I was out of the building. Thank you for your help.
– Vahap Burhan Demir
Nov 5 at 8:46












Try changing location modes such as High accuracy ,battery saving and device only ,you might get location inside building
– manjunath kallannavar
Nov 5 at 10:59




Try changing location modes such as High accuracy ,battery saving and device only ,you might get location inside building
– manjunath kallannavar
Nov 5 at 10:59












1 Answer
1






active

oldest

votes

















up vote
0
down vote













High accuracy setting uses and looks for GPS signals along with network, wifi for location triangulation. It is sometimes known , not to work indoors when a GPS lock cannot be obtained.



Try the application outdoors, or fallback to a lower accuracy mode that primarily relies on cellular network for location. That should give you better results indoors.






share|improve this answer





















    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });






    Vahap Burhan Demir is a new contributor. Be nice, and check out our Code of Conduct.










     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53149763%2ferror-getting-location-on-ibm-mobilefirst-platform%23new-answer', 'question_page');
    }
    );

    Post as a guest
































    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    High accuracy setting uses and looks for GPS signals along with network, wifi for location triangulation. It is sometimes known , not to work indoors when a GPS lock cannot be obtained.



    Try the application outdoors, or fallback to a lower accuracy mode that primarily relies on cellular network for location. That should give you better results indoors.






    share|improve this answer

























      up vote
      0
      down vote













      High accuracy setting uses and looks for GPS signals along with network, wifi for location triangulation. It is sometimes known , not to work indoors when a GPS lock cannot be obtained.



      Try the application outdoors, or fallback to a lower accuracy mode that primarily relies on cellular network for location. That should give you better results indoors.






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        High accuracy setting uses and looks for GPS signals along with network, wifi for location triangulation. It is sometimes known , not to work indoors when a GPS lock cannot be obtained.



        Try the application outdoors, or fallback to a lower accuracy mode that primarily relies on cellular network for location. That should give you better results indoors.






        share|improve this answer












        High accuracy setting uses and looks for GPS signals along with network, wifi for location triangulation. It is sometimes known , not to work indoors when a GPS lock cannot be obtained.



        Try the application outdoors, or fallback to a lower accuracy mode that primarily relies on cellular network for location. That should give you better results indoors.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 5 at 15:02









        Vivin K

        2,1561612




        2,1561612






















            Vahap Burhan Demir is a new contributor. Be nice, and check out our Code of Conduct.










             

            draft saved


            draft discarded


















            Vahap Burhan Demir is a new contributor. Be nice, and check out our Code of Conduct.













            Vahap Burhan Demir is a new contributor. Be nice, and check out our Code of Conduct.












            Vahap Burhan Demir is a new contributor. Be nice, and check out our Code of Conduct.















             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53149763%2ferror-getting-location-on-ibm-mobilefirst-platform%23new-answer', 'question_page');
            }
            );

            Post as a guest




















































































            這個網誌中的熱門文章

            Academy of Television Arts & Sciences

            L'Équipe

            1995 France bombings