Skip to main content

Set Crash User ID (SetUserId)

[Player Network SDK & MSDK] Set the user ID for crash reporting.

Supported channels: Firebase, CrashSight

Supported Platforms

Supports Android, iOS, Windows platform.
note

MSDK does not currently support Windows

Function Definition

void SetUserId(string userId);

Input Parameters

ParametersTypeDescription
userIdstringUser Name ID

Code Example

UnionAdapterAPI.GetCrashService().SetUserId("userId");