1

I want to detect changes to phone carrier (i.e.. Maxis, DiGi, Celcom). How can I do this? I found this link:

Is it possible to determine if the SIM/Phone number has changed?

But is it usable for iOS 7 and later & also safe to use? (meaning Apple won't reject the app as this app will be released into App Store).

Community
  • 1
  • 1
da32
  • 703
  • 1
  • 9
  • 18

1 Answers1

0

CTCarrier and CTTelephonyNetworkInfo are public classes available in the SDK, so yes, Apple will accept apps that incorporate these into the app store.

I was very intrigued by the subscriberCellularProviderDidUpdateNotifier dispatch block, but more than likely what you'll want to do is simply check to see if the carrier name has changed each time your app is launched or brought back to the foreground.

Michael Dautermann
  • 88,797
  • 17
  • 166
  • 215