Callback functions from server works perfectly android devices but do not work on iOS devices. Please can you help me with this issue Thank you
Asked
Active
Viewed 32 times
1
-
I'll need more information to help you here such as what API are you calling and what callback are you expecting from the server? Notice that HTTP doesn't send callbacks so all callbacks are from the client – Shai Almog Jun 11 '21 at 02:17
-
public MyConnectionRequest2(Callback call) { super(); setReadTimeout(Main.timeout); setTimeout(Main.timeout); this.fcall = call; this.scall = call; } – EmmaWedi Jun 15 '21 at 09:51
-
this is a sample code... but this works perfectly on android devices.... but not on ios devices.... is there a build hint that relates to network related callbacks for ios? – EmmaWedi Jun 15 '21 at 09:53
-
You don't pass the callback to our code. You use it within `MyConnectionRequest`. You need to edit the question and include proper code we can follow to understand the problem. There are differences between iOS and Android but they are nuanced... Is the URL HTTPS based? – Shai Almog Jun 16 '21 at 01:34
-
Thanks, Shai.. I realized the timeout for ios on connections is only one minute. after one minute the connection closes – EmmaWedi Aug 17 '21 at 16:03
-
You can use `setTimeout` and `setReadTimeout` explicitly to whatever you want. – Shai Almog Aug 18 '21 at 01:55