httprequest on iOS over 3G/Mobile
Monkey Forums/Monkey Bug Reports/httprequest on iOS over 3G/Mobile
| ||
Need to add this line:[_req setAllowsCellularAccess:YES]; when the NsMutableURLRequest request object is created. I think that was introduced in iOS6 so you may have to version check that. |
| ||
Will add, but the docs say it defaults to YES - can you confirm this will really fix it, ie: it's not a permissions thing or something? I don't have cellular access on my iOS devices here... |
| ||
Well I found it while debugging some requests that were working on wifi but not 3G. I found info saying that it should be enabled manually since ios6 but it was somone suggesting it. So then I posted big report here. Since that debugged some more and found out that some 3G/mobile networks strip out new line characters in certain situations. I'll have a test tomorrow to see if it makes a difference with the 3G flag. Perhaps you could give an extra flag param in http requests that lets you turn it on/off? That way the app designer could prevent requests on 3G if they so choose? |
| ||
I've added it and I think it should be harmless enough... |