I would like to ask for clarification regarding how Apps should handle Twitter integration from iOS 11 onwards.
The official Twitter documentation here states that:
iOS 11 no longer supports using Twitter through the built-in social framework. Instead, you can use Twitter Kit 3 to Tweet, log in users, and use the Twitter API.
And the official Apple documentation states in the release notes the following:
Social accounts have been removed from Settings in iOS 11. Third-party apps no longer have access to those signed-in accounts. (31687059)
My issue right now is trying to tie these 2 together when it comes to SHARING. I understand that login, accessing tweets and other stuff requires the Twitter SDK, but for simple sharing what changes?
Does this mean that we can’t use “SLComposeViewController” to present the Tweet View?
What about sharing through the use of an “UIActivityViewController”?
The current behavior i’ve noticed (and i’ll include Facebook as a comparison) is the following:
Facebook App not installed —> Silently Fails
Twitter App not installed —> Silently Fails
Facebook App installed —> Facebook share view is shown.
Twitter App installed —> Twitter share view is shown, but the following message is shown, “No Twitter Account” “There are no Twitter accounts configured. You can add or create a Twitter account in Settings”, after pressing OK i can post as usual.
- I’m assuming this is a bug, but is it an iOS bug? or a Twitter bug? or are we just NOT supposed to use “SLComposeViewController” for twitter anymore?
Facebook App not installed —> Facebook doesn’t appear as a sharing option
Twitter App not installed —> Twitter doesn’t appear as a sharing option
Facebook App installed —> Facebook app appears as a sharing option, pressing it shows the facebook sharing view.
Twitter App installed —> Twitter app is shown as a sharing option, but the following message is shown when selected, “No Twitter Account” “There are no Twitter accounts configured. You can add or create a Twitter account in Settings”, after pressing OK i can post as usual.
- This seems to be the same bug as with the “SLComposeViewController” but we have no control over this since apps that can “share” are shown automatically.
I’ll appreciate if someone from Twitter, or an user with knowledge about this could clarify these points for me.