InitializeIdentity
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 Initialize
in the BrainCloudAuthentication service.
caution
InitializeIdentity must be called before you can authenticate a user anonymously.
Method Parameters
Parameter | Description |
---|---|
profileId | The profile id of the user |
anonymousId | The anonymous id of the user |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
_bc.InitializeIdentity("myProfileId", "myAnonymousId");
_bc->initializeIdentity("myProfileId", "myAnonymousId");
[_bc initializeIdentity:@"myProfileId", anonymousId:@"myAnonymousId"];
_bc.initializeIdentity("myProfileId", "myAnonymousId");
_bc.initializeIdentity(profileId, anonymousId)
_bc.initializeIdentity( profileId:"myProfileId", anonymousId:"myAnonymousId");
// N/A
// N/A