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.
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;
Think you can help? Login to answer this question!