- Home /
Why do iOS web requests stop working after a few hours?
I build my app to iOS and all my requests and asset bundles work perfectly. I can do this over and over but when I leave the phone alone and come back in a few hours the app no longer works. I get (Filename: currently not available on il2cpp Line: -1) in the log.
am clearing the cache at start up in case that was the issue but it's not. -Im not saving any bundles, paths, or content
have disabled strip engine code
As I said before everything works perfect no errors for a while and then just stops as if the app expires or something. I do have a paid developer account so that should not be an issue.
Documents and data stay at the same amount of memory no matter how many time I open and close the app so I don't see anything leaking there either.
(Filename: currently not available on il2cpp Line: -1) isn't the error. It's trying to output the file and line:character where the error occurred, but that generally doesn't work on IL2CPP builds. Is there anything else in the log directly preceding that statement?
If I remember correctly it was just the request but I did build the app to the phone again so I have to wait a couple hours for it to not work again. As of now everything works perfect; all bundles are pulled no errors and all request go through with no issues. Once I have it on the phone for an hour or two I start to get that message as if the bundles aren't available or something is missing.