Message Profanity Filter (CoreSDK)

You can restrict specific words exclude from messages in ios by following the steps below:

  • Download the restrictWords.txt file.
  • Put it in root folder of your project and add file to your project.
  • Enter the words you want to filter out in the file within the given format.

You can also disable certain messages using Regular expression patterns as shown below.

Pass your regex string in below setting and add this in ALChatManager file', In the method
ALDefaultChatViewSettings

[ALApplozicSettings restrictedMessageRegexPattern:@"YOUR_REGEX_STRING_HERE"];
ALApplozicSettings.restrictedMessageRegexPattern("YOUR_REGEX_STRING_HERE")

Did this page help you?