Create an app extension that can identify and filter unwanted SMS and MMS messages while preserving user privacy.
- iOS 11.0+Beta
When an SMS or MMS message is received from an unknown sender, the Messages app can ask your message filter app extension to determine whether the message is unwanted. Your app extension can make this determination by using its own built-in data and logic or by deferring to analysis made by your associated server.
To find out if a message from an unknown sender is unwanted, the Messages app launches the currently enabled message filter app extension and queries it, as shown in Figure 1.
The Messages app uses an
ILMessage object to pass information about the message to your message filter app extension. If your app extension can determine whether the message is unwanted, it returns its decision back to Messages in an
If your app extension can't make this determination by itself, it tells Messages to send the information about the message to a server associated with your app. Your server examines the message information and sends a response to Messages, which passes the response to your app extension. The app extension parses the server's response and gives the final decision to Messages in an
ILMessage object, as shown in Figure 2.