Skip to content

Possible to add custom keys to crashlytics reports #5435

Answered by mikehardy
Nikooos asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there! Internally, setAttribute and setAttributes are mapped to setCustomKey(s)

https://rnfirebase.io/reference/crashlytics#setAttribute

return this.native.setAttribute(name, value);

@ReactMethod
public void setAttribute(String key, String value, Promise promise) {
if (ReactNativeFirebaseCrashlyticsInitProvider.isCrashlyticsCollectionEnabled()) {
FirebaseCrashlytics.getInstance().setCustomKey(key, value)…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Nikooos
Comment options

@mikehardy
Comment options

Answer selected by Nikooos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants