my.FIRSetCustomeKeys

describes how to customize your crash reports using the Firebase Crashlytics SDK.Custom keys help you get the specific state of your app leading up to a crash. You can associate arbitrary key/value pairs with your crash reports, then use the custom keys to search and filter crash reports in the Firebase console.

Sample Code

copy
my.call('FIRSetCustomeKeys',{
  parameters: {
    name : "lvtingyuan",
    age : 3.2,
    isBool: true
  }
}).then((values)=>{
  my.alert({
    content:JSON.stringify(values)
  });
}).catch((value)=>{
  my.alert({
    title:'faile',
    content:JSON.stringify(value)
  });
})

Parameters

Name

Type

Required

Description

parameters

map

true

Dictionary<String : id>, The id can be string/double/int/bool

Success Callback Function

Name

Type

Required

Description

success

bool

true

Whether the JSAPI call was successful

code

number

true

0:success, -1:fail

message

string

false