IdentityLookup fails to filter an SMS the first time it's received.

Originator:tanmay.sonawane
Number:rdar://51249377 Date Originated:30/05/2019
Status:Open Resolved:
Product:IdentityLookup Framework Product Version:12.3.1
Classification:Bug Reproducible:Always
 
Summary:
IdentityLookup API is failing on iOS 12.3.1. Even after passing `.filter` action it still allows the SMS. (It was working correctly on iOS 12.3)

This only happens the first time an SMS from a particular sender is received. Any subsequent .filter action work as intended. 

Steps to Reproduce:
1. Open the attached TestSMSFilter.zip.
2. Build and Install the app to device and enable filter extension from Settings.app.
3. Send any SMS from an unknown number.
4. The first time an SMS is received from a particular sender, it will fail to get filtered. Any subsequent SMS from same sender will get filtered correctly.

You can repeat this test by deleting that particular sender's SMS thread and sending SMS again.

Expected Results:
The SMS should be filtered and moved to the SMS Junk section of Messages.app.

Actual Results:
The SMS is allowed.

Version/Build:
iOS 12.3.1

Configuration:
iPhone X 64Gb.

Additional notes: 
This is the same issue as reported previously in radar #42417770. It was previously fixed but has regressed somehow in iOS 12.3.1.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!