ILClassificationResponse needs a way to pass response to be shown in compose SMS body in plain text

Originator:tanmay.sonawane
Number:rdar://43345422 Date Originated:16.08.2018
Status:Closed Resolved:
Product:iOS 12 SDK Product Version:iOS 12 Beta 6
Classification:Serious Bug Reproducible:Always
 
Area:
IdentityLookup Framework

Summary:
ILClassificationResponse currently has a userInfo property which accepts and passes only JSON encoded data. This is fine when it comes to reporting via a web API call, but when reporting spam via SMS message to a number, it simply shows the SMS compose screen with raw JSON string in the body text field. (check attached screenshot)

This is a problem because regulators such as TRAI in India expect the SMS to be reported using a certain format. The format in this case is: 

“The Unsolicited Commercial Communication, XXXXXXXXXX, dd/mm/yy”

More info can be found here: http://www.nccptrai.gov.in/nccpregistry/How%20to%20Register%20complaint.pdf

Steps to Reproduce:
Report any SMS as junk using the Unwanted Communication Reporting Extension with `ILClassificationExtensionSMSReportDestination` in `Info.plist` set to any phone number.

Expected Results:
A way to send the response in plain text to the compose SMS screen so the compose SMS screen is able to show the correct format required by regulator. 

Actual Results:
Compose SMS screen shows the response in the message body in raw JSON format.

Version/Build:
iOS 12 Beta 6

Screenshot: https://cl.ly/1x2H0E282y2B

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!