I can't understand why that code doesn't work:
this.doMagic() // <- there is a Promise which do 'reject'
.then(_ => {
alert('test 1') // <- this is not working (OK)
})
.catch(_ => {
alert('test 2') // <- it is working (OK)
})
.finally(_ => {
alert('test 3') // <- it is not working (NOT OK)
})
In the browser everything works fine, but I starting the emulator, 'test 3' does not work
At first I thought that the may be because of alert does not work. But no. If you put in the catch more alerts, they will work fine
In general, I have 2 hypothesis:
1) Cordova does not support the finally
2) I don't understand what's going on and make somewhere mistake
So, where is true?