You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Followed the post #212 here to add the clear cache function which works fine on the landing scene however as we then move into the following scene the api throws this null ref, has there been a change in the ordering of events the SDK does since that original post preventing me from doing this at run time? Thanks
Unity version: 2022.3.43f1
Models of phones tested: Pixel 6
Android Version 13
Scripting Backend: Mono
Api Compatibility Level: 34
Mapbox SDK version: Mapbox 2.1.1
The platform you're building to: Android
A description of what you're trying to do: Error clearing the style cache on app launch
The text was updated successfully, but these errors were encountered:
Any help would be really appreciated just to be very clear i can put the below in a logout style fuction which correctly wipes the cache but if i try to attempt this the other way around and clear before we first open the "world" scene that relies on mapbox data I see the above error. Is there a safe way to achieve this ?
public void ClearCache()
{
CachingWebFileSource cwfs = _fileSource as CachingWebFileSource;
if (null != cwfs)
{
cwfs.Clear();
}
}
Followed the post #212 here to add the clear cache function which works fine on the landing scene however as we then move into the following scene the api throws this null ref, has there been a change in the ordering of events the SDK does since that original post preventing me from doing this at run time? Thanks
Unity version: 2022.3.43f1
Models of phones tested: Pixel 6
Android Version 13
Scripting Backend: Mono
Api Compatibility Level: 34
Mapbox SDK version: Mapbox 2.1.1
The platform you're building to: Android
A description of what you're trying to do: Error clearing the style cache on app launch
The text was updated successfully, but these errors were encountered: