quickstart-unity
quickstart-unity copied to clipboard
[FR] Ability to remove custom key
Hi! It would be cool if it was possible to delete a custom key when it is no longer needed.
Example: when entering the game screen, I create a custom key "level_config", in which I specify some data (level id and etc.). After exiting the game screen, I no longer need to see this key in the list in the next possible error (of course, if it happened not on the game screen).
Now I can clear the key value, but it will still remain in the list. If there are many such keys depending on some condition, then the list will turn into a mess!
I found a few problems with this issue:
- I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
- This issue does not seem to follow the issue template. Make sure you provide all the required information.
@paulinon Hello! I apologize, I forgot to clarify that this question is about crashlytics, not for analytics. I think the label should be "api: crashlytics"
Hey @ByMedion - you may be able to do this by passing a null
to the SetCustomKey method. Let me know what you experience (and whether this is different on Android vs iOS).
In SetCustomKey there is null check for value, and throws exception, otherwise people suggested that it actually might work. could you remove this null check ?
public override void SetCustomKey(string key, string value)
{
if (key == null || value == null)
throw new ArgumentNullException("key and value should not be null");
this.CallInternalMethod((System.Action) (() => this.crashlyticsInternal.SetCustomKey(key, value)), nameof (SetCustomKey));
}