I think I understood how this was done to work in these applications. I observed the same behavior in my own application where func activityViewController(_ activityViewController: UIActivityViewController, subjectForActivityType activityType: UIActivityType?) โ String not called when selecting an Outlook application. However, I noticed that the CNN application, as an example, correctly creates a subject line.
The answer seems to be to make the first line of the body text the way you want the subject to be. I had a resource to which I attached a URL, and so the subject inserted a URL that I do not need. However, when I made the right subject, the first line of the body of the letter, it correctly filled the subject line in Outlook.
So this is not ideal, and, of course, the corresponding protocol function should be called, but it seems that this is how others circumvented something that we could not otherwise fix for Apple or Microsoft.
source share