I am working on making a VR app resilient to network disconnect. What I'm seeing is that when the connection is lost, MapsSDK is spamming the Unity log with hundreds of these: Unable to download map data: Cannot connect to destination host, 0, isHttpError: False, isNetworkError: True.
I can disable the map to prevent MapsSDK from making requests but it takes a few seconds for my app to detect offline. Meanwhile, MapsSDK has logged a few hundred of these errors. I suspect this is causing our framerate to drop.
Can MapsSDK expose an event so that I can turn the map off?
Alternatively, is there a way to configure it to exponential backoff requests when one or more have failed?
190 is a similar idea. The suggested workaround there could work here too, which is to use Unity's log callback to detect these messages and use that to disable the map.
I am working on making a VR app resilient to network disconnect. What I'm seeing is that when the connection is lost, MapsSDK is spamming the Unity log with hundreds of these:
Unable to download map data: Cannot connect to destination host, 0, isHttpError: False, isNetworkError: True
.I can disable the map to prevent MapsSDK from making requests but it takes a few seconds for my app to detect offline. Meanwhile, MapsSDK has logged a few hundred of these errors. I suspect this is causing our framerate to drop.
Can MapsSDK expose an event so that I can turn the map off?
Alternatively, is there a way to configure it to exponential backoff requests when one or more have failed?
Full error: