I have developed an app (for IOS) written in react native which is working good in IPV4 networks. However, recently Apple has sent a message saying that my app did not work when tested in an IPV6 network. They told me that I had to make it compatible with IPV6-only networks too.
The question is, how can I make my existing API calls compatible with an IPV6 network?
My API uses the https protocol and it is called by domain name, not a raw IP.
A sample fetch call that I use is:
fetch(query,{
method: 'post',
headers: Utils.fetchHeaders('post')
})
.then(Utils.checkStatus)
.then(Utils.parseJSON)
.then(json => this._handleResponse(json))
.catch(error => {
this.setState({
votingError: 'Sorry, there was an error!',
loading: false
});
});
and the API endpoint is in following format:
https://www.myapidomain.com
any help appreciated.