I need to check how many GPS satellites which is connecting with device.
I know how to do that on Android native app (how to get satellite name or number when we are getting location through GPS in Android?).
But, I need how to do that in phonegap/cordova hybrid application.
Thanks.
There is not anything developed to achieve that. If you want, you should make a plugin based in that android functions.
Since ios does not provide the number of satellites, and since phone gap is designed as a subset of functionality that runs on all phoneplattform, the num satellites is not available.
Further today the number of satellites is of little use, today phones use at least a combination of the US GPS and the Russion GLONASS. Thus always having many satellites in view, even in urban canyons.
You cannot use the num of satellites as a quality indicator.
Use horicontal acuracy estimate for that purpose.
Both android and ios provide that (check if phone gap provides, this, too)
Related
We have a ReactNative app, running on both iOS and Android.
We developed our own native module for GPS updates.
On iOS, it's working OK !
On Android, we're using FusedLocationProviderClient.
My problem: in some very rare cases on android, less than a few % of our GPS data, we see GPS data with correct latitude, but longitude keeps jumping around the real one (e.g. this seems to happen on some Samsung S9+)
See this screenshot
This bug only last a few minutes, then seems to resolve on its own...
Has anyone encoutered this bug too ?
If so, how did you fix it ?
(note: I can add code samples if you think it can help, but I'm having big difficulties reproducing this bug myself, so I doubt it's useful in this case...)
GPS takes awhile to lock, and depending on the phone, it can take quite awhile and be unreliable. The best thing you can do is check the accuracy that is reported, and also live poll the user's location when they open a relevant activity so by the time you need the location, it most likely has an accurate lock.
Also if needed, ask the user to apply their highest location accuracy settings. Details on how to do this can be found here
GPS takes some time to latch, and there should be at least 3 satellites to be able to latch for the device, if the user is indoor, it is nearly impossible to latch.
You will have to check for the accuracy, on testing I have found that if accuracy value becomes 2.9 (may be different on different devices, but till now I haven't seen) then your device location is set.
Or give some time to devise and record coordinates when you think it's feasible depending upon accuracy.
Hope this may help you...
I and a couple of friends have got a list of requirements for a new project. This project, basically asks us to synchronize a specific directory in a laptop with the user's phone (just like dropbox does) but using BLE for the communication.
Everything is working as expected. We're using Android on the phones and a BlueGiga USB dongle on the laptop side. The only problem we're facing is that we cannot limit the distance in which the phone is detected.
We do know that we can modify the TX Power and also the Advertising mode as it's explained here (https://developer.android.com/reference/android/bluetooth/le/AdvertiseSettings.html). The real problem is that we cannot get the same max distance on every phone because of differences with the chipsets, antennas, etc throughout all the Android devices in the market.
How could we do to limit the connection distance to 1 meter for all the devices running Android? We'd need to rely on the RSSI values but I'm open to different approaches anyway.
Thank you very much in advance guys and remember that everything is working perfectly. We just need to adjust the max distance.
Thanks.
Max.
Simple answer: You can't get an absolutely exact range limitation because of the physical properties of electromagnetic radiation. There are so many things you have to take into account, which makes it a quite difficult and complex task.
What you can do is very sophisticated calculations based ony many different factors to get an approximation. As already mentioned in the comments, you might find helpful libraries with algorithms and formulas for well known devices, chipsets antennas etc. so you don't have to do all the calculations on your own.
With the help of some libraries and tools, you may be able to quite safely determine if the device is within a range of between 1 and 3 meters.
Hi the idea is to track multiple mobile devices location within a building, and because it's indoors, Bluetooth seems to be a better choice.
Even though Bluetooth have a short range, but because the building have a high dense of Bluetooth-enabled devices, like hundreds of them, and all in the similar area, is it possible to draw out a map to track each devices based on a network built by each Bluetooth devices?
Like put a central device in the middle as the 'server', each devices track each other's location when they are near each other, and when a device gets nearby enough to the 'server' it reports back the locations and the 'server' build a map based on the distance.
Ibeacon would be usefull for this idea. You can send individual device distance or other necessary infos to server, then you can map out device location, but if you trying to do this in real time i am not sure, still u may check estimote ibeacon, estimote has similar feature named indoor navigation.
I am developing an android app for my device as part of my college project. I want to measure the distance between WIFI access point and my device using this app. Can I get any suggestion from you guys on this,regarding how to make it possible, keeping in mind about the information which I have discovered below.
Information which I discovered:-
1). The routers or WIFI access point do not have GPS capabilities. Hence, I assume, finding the distance via location is not possible.
2). It is possible to access a database of access points, but I have to request the proprietors commercially, which again is less practical.
3). I can use triangulation method but as you know its not feasible.
4). I also do not want to do Wifi Fingerprint, which is to measure RSSI signal strength on different location and calculate distance based on that.
Is there anyway out or anything I could do, to find distance between my device and the WIFI access point?? Any new idea as of now ?? Since on the Q&A forums, I discovered above Informations which were not discussed lately.
i need to develop an app that needs data from the accelerometer. could some one please suggest which android phone in the market would be good enough for accurate accelerometer data generator. since the entire app is based on data fetched by the accelerometer, the device has to be pretty accurate.
The accelerometers in any smart phone are cheap and the difference in the accuracy of the readings is negligible. Even though these devices are cheap, they're very accurate and can output a few thousand readings per second - so the accuracy of your program is going to be dependent on what you DO with the readings in your code not by the device itself.
If you just want an Android phone for development - not to use with a wireless plan, then go to ebay and swoop a used one up for $30-40. Most of these phones have accelerometers in them, but before you buy it - google the model and make sure.
I own a G1 - the original Android phone, and the accelerometer is very accurate.