Rejected from Apple: iOS 11 on Wi-Fi connected to an IPv6 network

ios
twitterkit
api

#1

My app is rejected due to not supporting IPv6 network support.

Here is message from Apple:

We discovered one or more bugs in your app when reviewed on iPhone running iOS 11 on Wi-Fi connected to an IPv6 network.

Submitting a Tweet through the app does not post it on the feed or on the Twitter web-site

My app is very simple and posts text using RestAPI call. Here is code snippet.

let client = TWTRAPIClient(userID: userid)
            
            let url = "https://api.twitter.com/1.1/statuses/update.json";
            let message:[String:Any] = ["status": text
            ]
            var error: NSError?
            let request = client.urlRequest(withMethod: "POST", url: url, parameters: message, error: &error)
            
            
            DispatchQueue.main.async {
                client.sendTwitterRequest(request) { (response, data, connectionError) -> Void in
                    
                    if let error = connectionError {
                        print("Error: \(error.localizedDescription)")
                        
                        
                        DispatchQueue.main.async {
                            completion(error)
                        }
                    } else {
                        DispatchQueue.main.async {
                            completion(nil)
                        }
                    }
                    
                    
                }
            }

Did anyone experience this?


#2

Not sure what the underlying network code is for TwitterKit but if it uses NSURLConnection rather than NSURLSession it isn’t IPv6 safe and has started getting rejections from Apple for that


#3

Just re-submit to Apple. This is a lame reason they use due to an error that can be received for various number of reasons in their test environment. Instead of launching the app and trying again, if you get a lazy reviewer they just reject and then answer no emails. We have had this happen many times over the years when we are fully compliant with IPv6. Just resubmit and it will go through. Nothing to do with Twitter…


#4

We are not using NSURLConnection for networking code, and we have not experienced this issue before. Hope it goes through, @dwdev!


#5

Thought you probably wouldn’t be :wink: but thanks for confirming


#6

Thanks for your kind reply, but re-submitting rejected again. :disappointed_relieved:


#7

:disappointed_relieved:
Did you also get the same error message?


#8

Resubmitted several times, but got rejected again.