Hi everyone!
Because of a business requirement, we need to know if the current device has GPS or not so, I have been researching this without any success. We could say that all of the iPhones have a built-in GPS, so this all comes down to the iPads.
I wanted to try to confirm here: Do you know if there is any public API that says if an iOS device has GPS or not?
On the other hand, only the Wifi + Cellular iPads have GPS, the WiFi-Only iPads don't have this. Therefore, we could say something like "If the device has cellular technology, then it has a GPS".
I found this answer in SO which shows how to accomplish the cellular detection: https://stackoverflow.com/questions/7101206/know-if-ios-device-has-cellular-data-capabilities/14507324#14507324
We have been able to test this out on 3 iPads: two WiFi + Cellular models, and the other one a WiFi-Only iPad. The result looks good.
I wanted to ask:
Is this the right way to detect cellular technology? (I do not seem to find detailed information about the "pdp_ip0" interface)
is this a safe way to detect if an iPad has GPS or not?
Thanks in advance!