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
Parameter | Description |
---|---|
profileId | The ID of the profile ID that was most recently used by the app (on this device) |
anonymousId | The anonymous installation ID that was generated for this device |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
_bc.AuthenticationService.Initialize("profileId", "anonId");
_bc->getAuthenticationService()->initialize("profileId", "anonId");
NSString * profileID = @"profileId";
NSString * anonymousID = @"anonId";
[[_bc authenticationService]
initialize:profileID
anonymousID:anonymousID];
String profileID = "profileId";
String anonymousID = "anonId";
_bc.getAuthenticationService().initialize(profileId, anonymousId);
_bc.authentication.initialize(profileId, anonymousId);
_bc.authentication.initialize(profileId, anonymousId);
// N/A
// N/A