The Agora Chat SDK provides a message reporting API, which allows end-users to report objectionable messages directly from their applications. After the Agora Chat server receives the report, it stores the report and displays it on Agora Console. Moderators can view the report items on the Agora Console and process the messages and message senders according to their content policy.
reportMessage provided by the Agora Chat iOS SDK to implement the reporting feature.
Before proceeding, ensure that you meet the following requirements:
The following code sample shows how to call the reporting API:
[AgoraChatClient.sharedClient.chatManager reportMessageWithId:msgId tag:tag reason:reason completion:nil];