Twitter authorization not working after distribution

You must Login before you can answer or comment on any questions.

I recently distributed an update to my app to include the ability to send tweets with an automatic hashtag added. I used the jsOauth found here: http://code.bytespider.eu/post/3032429995/twitter-client-using-titanium-and-jsoauth-part-1 as it seemed to work for both Android and iOS devices.

The intent is for the window where the tweet will be written to be opened, and then a check is done to see if the user is authenticated, and if they are not, a modal web view opens the twitter authorization page. This works perfectly fine in android, and in all our development copies of the iOS version, but once the app is downloaded from the iTunes store, the twitter login page never loads and the activity indicator just spins indefinitely.

I've tried talking to apple about the issue and they have no idea. I also reuploaded the binary in case it was somehow corrupt but the problem still persists. Other web views still work so I'm unsure what can be causing the problem.

As you can imagine, when the problem only exists in the live copy, it's pretty hard to diagnose so any ideas would be greatly appreciated.

Many thanks!

Andy

— asked 10 months ago by Andy F
0 Comments

1 Answer

Accepted Answer

I think I had a similar issue when working with an older version of jsOauth that was missing a comma in a variable declaration. Around line 96, check to make sure there is a comma at the end of the parser variable declaration:

var args = arguments, args_callee = args.callee,
            parsed_uri, scheme, host, port, path, query, anchor,
            parser = /^([^:\/?#]+?:\/\/)*([^\/:?#]*)?(:[^\/?#]*)*([^?#]*)(\?[^#]*)?(#(.*))*/,
            uri = this;

— answered 10 months ago by Adam Paxton
answer permalink
2 Comments
  • I had this exact same issue, a single comma caused the whole problem. You can do an 'AppStore' test before submitting by making an ad hoc version of the app and running that on a device. This way you know it will work in the store rather than having to wait for errors after submission.

    — commented 10 months ago by Malcolm Hollingsworth

  • Thanks that solved the problem! And ad hoc is a great way to test as it suffered from the same issue before I tried adding the extra comma. Thanks again for both of the tips!

    — commented 9 months ago by Andy F

Your Answer

Think you can help? Login to answer this question!