ios - Get current type of internet connection -
ios - Get current type of internet connection -
i want technology of radio access (internet connection), observe if device connected wifi or wwan connection (and in case, type of wwan : gprs, egde, 3g, 3g+, 3g++, or 4g).
does cttelephonynetworkinfo works iphone , ipad on ios7.1 ?
i've tried observe wifi connection on ipad print null result. code :
cttelephonynetworkinfo *telephonyinfo = [cttelephonynetworkinfo new]; nslog(@"current radio access technology: %@", telephonyinfo.currentradioaccesstechnology);
someone can told me why ? i'm not sure understand this...
thanks help
(source : http://www.objc.io/issue-5/ios7-hidden-gems-and-workarounds.html, section "know radio")
that's because currentradioaccesstechnology
homecoming radio access technology (not whether it's wifi or wwan). illustration of homecoming value ctradioaccesstechnologylte
.
to informed whether app connect wifi or wwan, should utilize reachability.
there several implementations available.
ios objective-c
Comments
Post a Comment