How to detect if cellular data is enabled for AppStore?

Reachability.m can tell if you can get to a host, or if you are on wifi, but is there any way to answer the question "can this device download apps from the AppStore over cellular data, or has it been disabled in Settings by the user?"


Thanks!

Your app can't directly sniff Settings for that - might fallback to asking the user, I guess.

True, but as with other settings that you can ask about the current status of things, I was wondering if anybody's figured out a way to infer if AppStore data is on. For example, I tried looking at NSURLRequest.allowsCellularAccess with an itms-apps URL to see if it was smart enough to see if that particular protocol was data-enabled when running on cellular data only. It's not :-(

To be clear, are you asking whether the built-in App Store app is allowed to use WWAN? That is, not your app, but the App Store app?

Why do you need to know that?

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Wow, I never got an email response that anyone had replied to this thread even though I'm subscribed. Hmf!


So, a year late, but Quinn, I want to know if the appstore can use cell data so that I don't, say offer an IAP or upsell or cross-sell to a user on cellular data only, which would send them to the App Store app, if they have cell data disabled for App Store, which would lead them to hitting a blank white page instead of even seeing an app page or whatenot in the App Store app. Not a good user experience as compared with proactively checking if they would be able to see a valid App Store page, and then telling the user about it, or perhaps offering to email them a reminder to buy/download something when they are on wifi, etc.


Make sense? Thanks


--EGB

Make sense?

Yep. Alas, there’s no way to do this. Feel free to file an enhancement request that describes your requirements. Please post your bug number, just for the record.

Of course there’s no way to fix this in 100% of cases (for example, there might be some other networking problem that prevents App Store accessing its resources) but we could definitely avoid some of the more obvious gotchas.

This reminds me of a dictionary app I used recently. The app requires that you enable offline support by buying an in-app purchase, which is fair enough. I tried to look up a word while I was offline and the app redirected me to its in-app purchase UI, which didn’t work, of course, because I was offline. Not the best user experience.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Enhancement 26039096 filed - thanks!


--EGB

How to detect if cellular data is enabled for AppStore?
 
 
Q