[TIMOB-18292] iOS8: HTTPClient onload callback doesn't get called in iOS 8.1
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2014-12-29T19:35:02.000+0000 |
Affected Version/s | Release 3.5.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | qe-3.5.0 |
Reporter | Kajenthiran Velummaylum |
Assignee | Ingo Muschenetz |
Created | 2014-12-29T05:01:56.000+0000 |
Updated | 2017-03-21T22:11:12.000+0000 |
Description
HTTPClient onload callback doen't get called in iOS 8.1 devices.
It's working as expected in iOS 7.1 devices
Steps To Reproduce
1. Create a classic app using following code in app.js
var win = Ti.UI.createWindow({
backgroundColor : 'white'
});
var xhr = Titanium.Network.createHTTPClient();
xhr.onload = function()
{
Titanium.Media.saveToPhotoGallery(this.responseData);
alert('Check your photo gallery for a titanium logo');
};
xhr.onerror = function()
{
alert('error');
};
// open the client
xhr.open('GET','http://static.appcelerator.com/images/header/appc_logo.png');
// send the data
xhr.send();
win.open();
2. Run on iOS 8.1 device
Expected Result
Appc logo should be saved in gallery and there should be an alert dialog with the message of *Check your photo gallery for a titanium logo*.Actual Result
Alert with *error*. Following log message was observed in console but this log was not consistent.
/private/var/mobile/Containers/Bundle/Application/6DC7EB6F-15F9-481C-8DCD-DC7AB8B1EC56/XHRTest.app/app.js, Resource: app_js
[DEBUG] : enabledRemoteNotificationTypes is not supported in iOS 8.0 and later.
Unable to reproduce the error using: Titanium SDK 3.5.0.v20141222103320 Studio 3.4.1.201410281743 Xcode 6.1.1 & 6.1.0 Alloy 3.4.1 CLI 3.4.1 On: iPad mini, iOS 8.1 iPhone 6, iOS 8.2b3 iPhone 6 Plus, iOS 8.1 Expected alert is shown and the image appears in the photo gallery
[~kvelummaylum] This might be a timing issue, as the test code is minimal. Please try again, and try on other systems to get a better sense of the impact.
Can not reproduce. What is the error that you are seeing?
Closing ticket as the issue cannot be reproduced and due to the above comments.