MBToolbox
MBToolbox copied to clipboard
Reachability on IPv6
I got my app rejected from Apple because there were errors while connecting to IPv6-only networks. This is most probably because of reachability checks that I perform from MBToolbox tools.
Can somebody check this and fix the issue?
Much appreciated, O
We have been submitting apps with the reachability code in MBToolbox for years, and have never gotten a rejection notice related to IPv6. Unless Apple has changed their submission policies in the last few weeks, I suspect your problem lies elsewhere.
We will be happy to look into it if you can provide some indication that the problem does in fact lie in our code. In the meantime, we will be submitting a new app build within the next week or so, so if there is a new submission problem related to MBToolbox, we'll find out about it soon enough.
Well, there are 2 networking libraries that I use - Alamofire and MBToolbox. I use Alamofire for all requests and "talking" with database, but MBToolbox - for checking reachability.
I recently submitted a new update for my app to App Store and it got rejected because the app wasn't configured for IPv6-only networks. I checked with Alamofire and they've got everything ready for IPv6, therefore this tool must be the reason why it's not being accepted by them.
As for the code, I'm using it this way:
if MBNetworkMonitor.instance().isOnline { connected() }
It is conceivable that Apple has imposed a new requirement, however since we have not seen yet this during our submissions, would you mind providing the exact error message you're seeing so we can look into it further?
Also, keep in mind that it is possible to use an IPv6-compliant API in a manner that isn't IPv6-compliant: for example, if you construct a URL using an IPv4 address instead of a domain name.