Skip to main content
Version: 5.7.0

Initialize

Initializes the authentication service with an anonymous installation ID and most recently used profile ID. You will need to call this method before authenticating anonymously.

Note that calling this is the same as calling InitializeIdentity in the BrainCloudClient.

Method Parameters

ParameterDescription
profileIdThe ID of the profile ID that was most recently used by the app (on this device)
anonymousIdThe anonymous installation ID that was generated for this device

Usage

http://localhost:3000
_bc.AuthenticationService.Initialize("profileId", "anonId");