Closed advir1 closed 5 years ago
Message protocol doesn't user `Promise' object. The code example, perhaps, has nothing to do with SIVIC protocol. The idea of promise in the message protocol is just a loosely borrowed concept that mimics promise flow. In fact, because messaging cannot provide callbacks - it cannot realize true Promise functionality. This is in addition to elevated possibilities of asynchronous messages reporting which, in turn, makes it impossible to create solid Promise concept utilization.
Good point. I think this boils down to a few questions for the meeting:
Resolved. There should be a comment in the code: Promises don't work in IE 11 so we should add a comment that recommends a polyfil for browsers without promises.
https://github.com/InteractiveAdvertisingBureau/SIVIC/blob/5af81aa12157e4d4377455e7ba73fda184c3de52/examples/sivic_protocol.js#L55
Browsers representing 5% of global use (IE 11, Opera Mini) do not support JS Promise Have we officially decided not to support those browsers in the SIVIC protocol?
https://caniuse.com/#feat=promises