Register or Unregister Tag Push (SetTag/DeleteTag)
AndroidiOS
If you are using Unreal Engine, please refer to SetTag/DeleteTag in the Unreal Engine SDK.
If you are using Unreal Engine, please refer to SetTag/DeleteTag in the Unreal Engine SDK.
Games can set tags for users, such as gender, age, education level, hobbies, etc.Player Network SDK provides a set of default tags for games, used to push specified notifications to target audiences.
Sending tag push messages is similar to sending push messages; however, when adding push messages, you must select a personalized push for the audience scope.
caution
When setting a tag, note tags cannot contain spaces.
Function Definition
// Register a tag
public static void SetTag(string channel, string tag);
// Unregister a tag
public static void DeleteTag(string channel, string tag);
Parameter Details
| Parameters | Type | Explanation |
|---|---|---|
| channel | string | Channel Definition Example "Firebase" |
| tag | String | Tag Cannot be null or contain spaces |
Callback processing
The callback handling interface is PushBaseResultObserver.The callback data structure is BaseResult.
The callback ID is INTL_PUSH_SET_TAG, INTL_PUSH_DELETE_TAG.
Code example
// Register a tag
INTLAPI.SetTag(INTLChannel.Firebase, "INTL_TAG");
// Unregister a tag
INTLAPI.DeleteTag(INTLChannel.Firebase, "INTL_TAG");