Open jgoslin opened 13 years ago
make sure autoEncodeUrl is set to false for android (XHR.autoEncodeUrl = false;)
I guess the problem was a missing Ti.Network.encodeURIComponent() over the url. In the pull request https://github.com/jpurcell/birdhouse/pull/27, I fixed this bug and added other shortener API's like goog.le and bitly. As far as I now, twe.ly is down.
Unfortunately the URL shorten function fails on Android but works perfectly on IOS. The only thing it returns is "false." I added a Ti.API.info on the ResponseText which basically says you need to submit a valid URL <a href= >
It is my opinion that something is mangling the url that is being passed to twe.ly on android. Most likely the issue is in HTTPClient object from Titanium.
Thanks,
John