Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-1604

iOS 10.0: Bluebird Promise not firing 'then' if Alloy is used.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Not Our Bug
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Runtime
    • Environment:

      TiSDK: 7.0.1
      Simulator: Iphone 5s, OS 10.0

      Description

      When I use Alloy for something, bluebird promise not firing 'then' on iphone 5s with OS 10.0.

      If I use OS 11.0, it works normally.
      If I use SDK 6.x, it works normally on all OS versions.

      To Reproduce:

      1. Create a new Project
      2. Download bluebird.min.js at https://github.com/petkaantonov/bluebird/releases
      3. Rename to bluebid.js and past on lib folder.
      4. Write on app/alloy.js:

      Alloy.Globals.test = 'test';
      

      3. Write on index.js:

      var Promise = require('bluebird');
       
      var test = new Promise(function (resolve){
       
      	resolve();
      });
       
      test.then(function (){
       
      	console.log('not working!!');
      });
       
      console.log(Alloy.Globals.test);
      

      5. Run os Iphone 5s simulator with OS 10.0.

      The ('not working!!') log doesn't work.

      If I remove the (Alloy.Globals.test) log, then promise is fired and the The ('not working!!') log works.

        Attachments

          Activity

            People

            • Assignee:
              fmiao Feon Sua Xin Miao
              Reporter:
              hrfn Hugo Ramos Freire Neto
            • Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration