I have done most of all the things to get my phone carrier availability. I got signal strength by using CTGetSignalStrength()
and SIM status by CTSIMSupportGetSIMStatus();
.
But it always returns kCTSIMSupportSIMStatusReady . Now if lost my network connection then it also returns same status as kCTSIMSupportSIMStatusReady .
So, is there any method to get notify for lost of any signal in iphone? My app doesn't require internet connections.
You can always use Reachability (included in AFNetworking)
Reachability *reachability = [Reachability reachabilityForInternetConnection];
[reachability startNotifier];
NetworkStatus status = [reachability currentReachabilityStatus];
if(status == NotReachable)
{
// in this case there is no internet connection
}
else if (status == ReachableViaWiFi)
{
// in this case there is WiFi connection
}
else if (status == ReachableViaWWAN)
{
// in this case there 3G connection, WCDMA-umts
}
Do you need to check the difference between WCDMA-UMTS, GPRS, GSM?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.