Skip to main content

SetAccount/DeleteAccount [MSDK Only]

info

Currently, you can set and delete accounts only on the XG channel, but not on the Firebase channel.

[MSDK Only] When pushing, you can push to the account according to the set account.

Supported Platform

Supports Android, iOS platform.

Function Definition

// Set Account
void SetAccount(string channel, string account);

// Delete Account
public static void DeleteAccount(string channel, string account);

Input Parameters

ParameterTypeDescription
channelstringThe specified channel to push notifications.
Example: "Firebase" and "XG"
accountstringThe set account
Setting account enables notifications to be pushed to the specified account. The account value cannot be single characters such as “2” and “a”.

Code Sample

// Set Account
UnionAdapterAPI.GetPushService().SetAccount("XG", "msdk openid");

// Delete Account
UnionAdapterAPI.GetPushService().DeleteAccount("XG", "msdk openid");