Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-12846

Android: Timeout property not working for Network calls

    Details

      Description

      Find the sample code below to reproduce the same.

      var win = Ti.UI.createWindow({
          backgroundColor : '#ffffff'
      });
      var url = 'https://www.google.com';
      if (Ti.Network.online) {
          var xhr = Ti.Network.createHTTPClient({
              timeout : 0,
              validatesSecureCertificate : false
          });
          xhr.onload = function(e) {// Onload
              Ti.API.info('onload:' + this.status + xhr.status + xhr.getStatusText() + JSON.stringify(e));
          };
          xhr.onerror = function(e) {
              alert('e.error:' + e.error + ':status:' + xhr.status + xhr.statusText);
              Ti.API.info(JSON.stringify(e));
          };
          xhr.open('GET', url);
          xhr.send();
      }
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              ingo Ingo Muschenetz
              Reporter:
              anigam Ashish Nigam
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-15733
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code