Recommended for applications with an account system. This API will override all accounts previously bound to the device of the current account type, and only the current registered account will take effect.void clearAndAppendAccount(Context context, String account, int accountType, XGIOperateCallback callback)Recommended for applications with an account system. This API will override all accounts previously bound to the device of the current account type, and only the current registered account will take effect. There is no registration callback.void clearAndAppendAccount(Context context, final String account, int accountType)
appendAccount API was seldom used and confusing to developers, it has been disused since October 26, 2020. If you have used it before, it will be replaced by the clearAndAppendAccount API.account_push_type parameter settings in Push API.XGPushManager.AccountType.XGPushManager.clearAndAppendAccount(context, "1369999999", XGPushManager.AccountType.PHONE_NUMBER.getValue());
XGIOperateCallback class provides an API to process success or failure. Please see the description of the account binding API.public interface XGIOperateCallback {/*** Callback when the operation is successful* @param data //Business data of a successful operation, such as the token information when registration is successful* @param flag //Flag tag*/public void onSuccess(Object data, int flag);/*** Callback when the operation fails* @param data //Business data of a failed operation* @param errCode //Error code* @param msg //Error message*/public void onFail(Object data, int errCode, String msg);}
delTag API is disused in SDK v1.2.3.0. The delTags API is recommended.public static void delTag(Context context, String tagName)
Context object.onDeleteTagResult method of XGPushBaseReceiver.XGPushManager.delTag (this, "male");
Feedback