Recipe: Checking Your Network Status

Networked applications need a live connection to communicate with the Internet or other nearby devices. Applications should know whether such a connection exists before reaching out to send or retrieve data. Checking the network status lets an application communicate with users and explain why certain functions might be disabled.

Apple has rejected and will continue to reject applications that do not check network status before providing download options to the user. Apple reviewers are trained to check whether you properly notify the user, especially in the case of network errors. Always verify network status and alert the user accordingly.

Apple also may reject applications based on “excessive data usage.” ...

Get The Core iOS Developer’s Cookbook, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.