{"action":"created","issue":{"url":"https://api.github.com/repos/BranchMetrics/ios-branch-deep-linking/issues/383","repository_url":"https://api.github.com/repos/BranchMetrics/ios-branch-deep-linking","labels_url":"https://api.github.com/repos/BranchMetrics/ios-branch-deep-linking/issues/383/labels{/name}","comments_url":"https://api.github.com/repos/BranchMetrics/ios-branch-deep-linking/issues/383/comments","events_url":"https://api.github.com/repos/BranchMetrics/ios-branch-deep-linking/issues/383/events","html_url":"https://github.com/BranchMetrics/ios-branch-deep-linking/issues/383","id":163799556,"number":383,"title":"add @subject to showShareSheetWith* methods","user":{"login":"athibaud","id":1503735,"avatar_url":"https://avatars.githubusercontent.com/u/1503735?v=3","gravatar_id":"","url":"https://api.github.com/users/athibaud","html_url":"https://github.com/athibaud","followers_url":"https://api.github.com/users/athibaud/followers","following_url":"https://api.github.com/users/athibaud/following{/other_user}","gists_url":"https://api.github.com/users/athibaud/gists{/gist_id}","starred_url":"https://api.github.com/users/athibaud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/athibaud/subscriptions","organizations_url":"https://api.github.com/users/athibaud/orgs","repos_url":"https://api.github.com/users/athibaud/repos","events_url":"https://api.github.com/users/athibaud/events{/privacy}","received_events_url":"https://api.github.com/users/athibaud/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-05T08:43:07Z","updated_at":"2016-07-10T19:41:40Z","closed_at":"2016-07-10T19:41:40Z","body":"As far as I can tell, `subject` is used only for the email sharing option as the email subject..\r\n\r\nThere are two ways to implement this:\r\n- the [\"correct\" way](http://stackoverflow.com/a/28072306) via the [activityViewController:subjectForActivityType: protocol](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIActivityItemSource_protocol/index.html#//apple_ref/occ/intfm/UIActivityItemSource/activityViewController:subjectForActivityType:)\r\n- the [\"easy but undocumented\" way](http://stackoverflow.com/a/28070555), by simply setting a `@subject` key to the `activityController`\r\n\r\nI could create a PR for the second because its very straight forward but I have no iOS/objective-C experience at all so I would struggle a little more to implement le the first method.\r\nWhat API would you want for this? `showShareSheetWithSubjectText:` `showShareSheetWith*: andSubjectText:` etc?\r\n\r\nMy use case is to ensure that the [`messageHeader` key of the `shareOptions` param of the `react-native-branch` module is taken into account on iOS too](https://github.com/BranchMetrics/react-native-branch-deep-linking/blob/ae270b18229b0e3d28ffdb794298c40d6b1d2a67/README.md#shareoptions)"},"comment":{"url":"https://api.github.com/repos/BranchMetrics/ios-branch-deep-linking/issues/comments/231606886","html_url":"https://github.com/BranchMetrics/ios-branch-deep-linking/issues/383#issuecomment-231606886","issue_url":"https://api.github.com/repos/BranchMetrics/ios-branch-deep-linking/issues/383","id":231606886,"user":{"login":"aaustin","id":1332632,"avatar_url":"https://avatars.githubusercontent.com/u/1332632?v=3","gravatar_id":"","url":"https://api.github.com/users/aaustin","html_url":"https://github.com/aaustin","followers_url":"https://api.github.com/users/aaustin/followers","following_url":"https://api.github.com/users/aaustin/following{/other_user}","gists_url":"https://api.github.com/users/aaustin/gists{/gist_id}","starred_url":"https://api.github.com/users/aaustin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaustin/subscriptions","organizations_url":"https://api.github.com/users/aaustin/orgs","repos_url":"https://api.github.com/users/aaustin/repos","events_url":"https://api.github.com/users/aaustin/events{/privacy}","received_events_url":"https://api.github.com/users/aaustin/received_events","type":"User","site_admin":false},"created_at":"2016-07-10T19:41:40Z","updated_at":"2016-07-10T19:41:40Z","body":"Please follow that PR. Closing this issue."}}
{"actor":{"display_login":"aaustin"}}