Offline alert?

Is there a way to check if the device (iOS in this case) has internet access and if not alert the user? In my app I am using the Store API but it doesn’t appear to know whether or not it has internet access. The device logs an error in the XCode console but this error doesn’t seem to propogate to Corona.

Is there a way I can check this manually?

Thanks [import]uid: 61520 topic_id: 14760 reply_id: 314760[/import]

Apple would ask you to use the reachability code, which in the case of corona would be the network listener sample that will tell you if the device is online or not.

You can also get the HelperLib that has that and a few other functions which are helpful in development, plus it is written by Danny from InfusedDreams.

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 14760 reply_id: 54641[/import]

Thanks jayantv. Yes, should have thought of that. Thanks for the heads up about HelperLib too. [import]uid: 61520 topic_id: 14760 reply_id: 54678[/import]