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

setTimeout/setInterval is not execute correctly in android. #9

Closed
mrtian opened this issue Jun 30, 2020 · 1 comment
Closed

setTimeout/setInterval is not execute correctly in android. #9

mrtian opened this issue Jun 30, 2020 · 1 comment

Comments

@mrtian
Copy link

mrtian commented Jun 30, 2020

time is 0;
image
var a = new Date().getTime();
setTimeout(function(){
Jfui.log("timeout:"+(new Date().getTime()-a));
},5000);

@abner
Copy link
Owner

abner commented Aug 10, 2020

setTimeout, setInterval were not supported by the underlying javascript engines (quickjs on Android and JavascriptCore on IOS).
There is a alternative to use Kotlin code on Android and Swift Code on IOS to provide surrogate implementations. But is not implemented just yet.

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

No branches or pull requests

2 participants