I wanted to send some custom keys for each crash, say a crash identifier to identify the user reported crash from crashlytics. I see the Crashlytics API provides a method setObjectValue(forkey:) to do this, but, where in code should this be called ? Do we have any Crashlytics callback that gets triggered when a crash happens? So far I have seen, there is only a callback to know whether crash happened during the last session.
- So which would be the best place to add custom keys to be associated for each crash?
- Docs say that Crashlytics supports a maximum of 64 such key/value pairs, does it mean that we can add custom keys only for 64 crashes or how does that work ?