-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: Offline caching #208
Conversation
@@ -84,6 +84,7 @@ public SentryUnityOptions() | |||
{ | |||
// IL2CPP doesn't support Process.GetCurrentProcess().StartupTime | |||
DetectStartupTime = StartupTimeDetectionMode.Fast; | |||
CacheDirectoryPath = Application.persistentDataPath; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we might have multiple instances of the same game open and that would conflict here.
It isnt' a problem on mobile but it could happen on desktop. @Tyrrrz would the .NET SDK handle that today?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it won't. We decided not to add it for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. That makes me wonder if we need to solve this now, or just document this.
Note: For Desktop games: If more than one instance of your game can run at the same time, you'll need to pass a separate path explicitly.
Or something along those lines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not a terribly hard problem to solve i think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We talked briefly and it was a bit annoying. Since crashes are sent after restart, we need a segment of the path that survives restart. So pid
won't do for example. Not a hard problem but not trivial as 'add a hash of X in there' kind of trivial
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a couple of C# nits but it already LGTM!
Setting default path on option creation.