Xcode: How to show GPS strength value?
use the properties of CLLocation like horizontalAccuracy
and verticalAccuracy
which indicate how accurate the device believes that location fix to be.
and u can use
if (someLocation.horizontalAccuracy < 0){ // No Signal}else if (someLocation.horizontalAccuracy > 163){ // Poor Signal}else if (someLocation.horizontalAccuracy > 48){ // Average Signal}else{ // Full Signal}
taken from linkhope it helps. happy coding :)
You don't have direct access to number of visible satellites or signal strength.
You could however calculate fake signal strength from accuracy.
-(void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation{ NSLog (@"accuracy: H:%.2f, V:%.2f", newLocation.horizontalAccuracy, newLocation.verticalAccuracy);}