[ALOY-1604] iOS 10.0: Bluebird Promise not firing 'then' if Alloy is used.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Not Our Bug |
Resolution Date | 2018-03-05T21:48:09.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Runtime |
Labels | alloy, bluebird, promises |
Reporter | Hugo Ramos Freire Neto |
Assignee | Feon Sua Xin Miao |
Created | 2018-02-08T17:07:55.000+0000 |
Updated | 2018-03-06T12:32:11.000+0000 |
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
File | Date | Size |
---|---|---|
classic.zip | 2018-02-22T19:31:17.000+0000 | 23824 |