Project: titanium
Issue TIMOB-19916: Android: HTTPClient ondatastream method responseText is empty for Android
We have comet server which we receive updates. iOS version works but Android version responseText is empty which must not be the case. In iOS version ondatastream method receives ping items but Android does not receive. How to reproduce issue: There are two version app.js (long version) app_simplified.js (short version/ no need to send news to test it) use app.js code as attached. Use iOS simulator then test the service by using following url: [send news update|http://destekmenkul.com/mobil/insertcommenttest.php] fill pass field: pass: murat123 result is shown in the terminal : "its working" means ondatastream works. We sended a news and it cought in ondatastream method but Android gives runtime error because responseText is empty. [INFO] : TypeId:TestType [INFO] : notification:{"py/object":"NewsLib.DefaultNewsItem.DefaultNewsItem","readCount":0,"uid":"20150930141554","source":"TestSource","symbol":"EURUSD","dateTime":{"py/repr":"datetime/datetime.datetime(2015, 9, 30, 14, 15, 54, 430528)"},"thumbnailID":"http://www.forexsirketleri.org/uploads/destekfx-inceleme.png","header":"My Header","typeId":"TestType","keywords":["","usd","abd","eurusd","eur","euro b??lgesi"],"pretext":"pretext","isRefresh":false,"isDelete":false,"stocks":"","timestamp":1446207300000} [INFO] : its working!!! Now try same step with Android simulator there is no info print! ondatastream responseText is empty! I attached our comet service document for further explanation of comet service. app_simplified.js: Just run the code and see the response.
Story points: 5