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
- Unity
- Unreal Engine
Supports
Android, iOS
platform.Supports
Android, iOS
platform.Function Definition
- Unity
- Unreal Engine
// Set Account
void SetAccount(string channel, string account);
// Delete Account
public static void DeleteAccount(string channel, string account);
// Set Account
static void SetAccount(const std::string &channel, const std::string &account);
// Delete Account
static void DeleteAccount(const std::string &channel, const std::string &account);
Input Parameters
- Unity
- Unreal Engine
Parameter | Type | Description |
---|---|---|
channel | string | The specified channel to push notifications. Example: "Firebase" and "XG" |
account | string | The 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”. |
Parameter | Type | Description |
---|---|---|
channel | string | The specified channel to push notifications. Example: "Firebase" and "XG" |
account | string | The 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
- Unity
- Unreal Engine
// Set Account
UnionAdapterAPI.GetPushService().SetAccount("XG", "msdk openid");
// Delete Account
UnionAdapterAPI.GetPushService().DeleteAccount("XG", "msdk openid");
// Set Account
GUA_NAMESPACE::GUAPushService::SetAccount("XG", "msdk openid");
// Delete Account
GUA_NAMESPACE::GUAPushService::DeleteAccount("XG", "msdk openid");