DetachAppleIdentity
Detach the Sign in with Apple identity from this profile.
Service | Operation |
---|---|
identity | DETACH |
Method Parameters
Parameter | Description |
---|---|
appleId | The Apple ID of the user |
continueAnon | Proceed even if the profile will revert to anonymous? |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
string appleId = "someId";
_bc.IdentityService.DetachAppleIdentity(
appleId,
true,
SuccessCallback, FailureCallback);
const char * appleId = "someId";
_bc->getIdentityService()->detachAppleIdentity(
appleId, false, this);
- (void)detachAppleIdentity:(NSString *)appleId
continueAnon:(bool)continueAnon
completionBlock:(BCCompletionBlock)cb
errorCompletionBlock:(BCErrorCompletionBlock)ecb
cbObject:(BCCallbackObject)cbObject;
public void detachAppleIdentity(String appleId, boolean continueAnon, IServerCallback callback)
_bc.identity.detachAppleIdentity = function(appleId, continueAnon, callback)
var appleId = "someId";
var continueAnon = true;
ServerResponse result = await _bc.identityService.detachAppleIdentity(appleId:appleId, continueAnon:continueAnon);
if (result.statusCode == 200) {
print("Success");
} else {
print("Failed ${result.error['status_message'] ?? result.error}");
}
// N/A
// N/A
JSON Response
{
"status": 200,
"data": null
}
Common Error Code
Status Codes
Code | Name | Description |
---|---|---|
40210 | DOWNGRADING_TO_ANONYMOUS_ERROR | Occurs when detaching the last non-anonymous identity from an account with continueAnon set to false. |