Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap callbackFromNative in Promise.resolve #171

Merged

Conversation

jcesarmobile
Copy link
Member

As on #124 the setTimeout was removed, it could cause problems (none reported at the moment, but you never know).

This should protect from those possible problems as it keeps the behaviour the setTimeout used to have (putting the code into a the queue for the next process tick).

@ghenry22 can you test this and see if keeps working fine in background?

See related cordova-plugin-wkwebview-engine PR

@ghenry22
Copy link
Contributor

No problem I’ll test it out with a couple of projects next week when I am back in the office.

@ghenry22
Copy link
Contributor

ghenry22 commented Oct 2, 2018

@jcesarmobile this is all working fine for me, have updated 2 projects with no issues encountered so far.

@jcesarmobile jcesarmobile merged commit 67da7b9 into ionic-team:master Oct 2, 2018
@jcesarmobile jcesarmobile deleted the callbackFromNative-promise branch October 2, 2018 11:38
@jcesarmobile
Copy link
Member Author

thanks for testing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants