I am trying to called flask api from react native side using fetch,it works properly in android but it always give access denied when calling from ios. this is the api called from react native:
BackgroundTimer.runBackgroundTimer(() => {
fetch('http://192.168.1.9:8088/notification_view/api/read', { method: 'GET',
// body: data,
})
.then(response => response.json())
.then((res) => {
console.log('response',res);
}).catch((e)=>{
console.log(e)
})
}, 30000);
this api called in background every 30 seconds. api response: {"message": "Access is Denied", "severity": "danger"}