(Do not merge!) Poked around wakelock_plus (web)#25
(Do not merge!) Poked around wakelock_plus (web)#25ditman wants to merge 2 commits intofluttercommunity:mainfrom ditman:poked-around
Conversation
|
@ditman I'll take a look at this sometime this week. |
|
@diegotori no problem, I was just cleaning up notifications and pending work on my end! I closed this because this was more of an "here are some ideas" type of PR, rather than anything that actually thought should be merged as is! |
|
@ditman sorry to dig up this one from the grave, but it looks like I was able to make the tests pass by waiting a few milliseconds after enabling the wakelock on web. In other words, in addition to fixing the way it loads the script using ui_web's Right now, it waits for the result when calling You can track the progress in #75. |
|
@diegotori thanks for picking this up, I had totally forgotten about this PR, it's as if somebody else had written it :P |
This Draft PR is a small example of a conversation that @diegotori and I had in another one.
This PR:
enabledwith thepromiseToFuturehelper.importJsLibraryso it returns a FutureI've tried to run the test with:
And you're right, the JS fails to load, and then everything else times out. I'm not sure why.
The test can be run manually with:
And see how some tests pass, but calling
disable()afterenable()seems to be broken in the underlying JS implementation.