Cannot Send Tweet popup appears
Asked Answered
F

1

11

I added Twitter to my iOS app. I'm using iOS 5's TWTweetComposeViewController in ShareKit. It returns TWTweetComposeViewControllerResultDone. So ShareKit gets to sendDidFinish, and thinks the tweet was successful. It exits smoothly out.

Then after < 1 minute, Apple displays a message:

"Cannot Send Tweet"

"The tweet, "blah blah blah" cannot be sent because the connection to Twitter failed."

I'm in China, and I turned off the VPN, so technically the message is correct. However, how do I know that I'm going to get this message? How do I know if the tweet is finally posted? that way I can keep the "loading" icon still rotating in the background. Is there a notification message that I can listen for?

Thank you

Fillender answered 23/3, 2012 at 10:6 Comment(3)
Really Interesting Question.Hope to see some answers.I will give you upvote..Silent
This problem happens on Apple's Twitter sample code too. It says the tweet is done, then minutes later the "Cannot Send Tweet" popup appears. Apple's Twitter framework is missing additional error checks and notification messages. I hope they fix it in next SDK release.Fillender
May be.But let's see will you get some answers or notSilent
M
5

Don't know if this is related, but in simply trying to send a tweet today via Safari on the iphone I got the "Cannot Send Tweet" message. Some experimentation revealed that the tweet was too long. The tweet contained a link, which Twitter automatically shortens and calculates for in the amount of characters left that it displays for your tweet.

Looks like Apple is calculating this incorrectly, because although my tweet showed 3 characters remaining in Safari's tweet bubble pop-up, when I pasted the same information into the iphone Tweeter app, it was over the limit. Once shortened it posted fine from Safari.

So I would say Elissa Tong is right - "Apple's Twitter framework is missing additional error checks and notification messages."

Matchboard answered 27/6, 2012 at 21:31 Comment(3)
Whoops, meant to post that as a comment to the OP not an "answer". My bad.Matchboard
Any solution to this problem?Juniper
There is some aspect to this other than length - desktop Safari is failing like this every time for me at the moment, regardless of length. That likely still comes under "missing additional error checks and notification message though".Chobot

© 2022 - 2024 — McMap. All rights reserved.