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

iOS: HTTP requests cancelled every 15 seconds #1

Open
jampy opened this issue Nov 29, 2016 · 1 comment
Open

iOS: HTTP requests cancelled every 15 seconds #1

jampy opened this issue Nov 29, 2016 · 1 comment

Comments

@jampy
Copy link
Owner

jampy commented Nov 29, 2016

The problem described in richtr/NoSleep.js#15 applies to react-wakelock as well, since the same method is used.

Basically the window.stop() doesn't just abort the (dummy) location change started by react-wakelock itself, but also all other HTTP requests on the same page.

@jampy
Copy link
Owner Author

jampy commented Nov 29, 2016

I don't know how to fix this problem, especially since I currently have no iOS device to test with.

Maybe it would help to start the location change in a hidden <iframe> but I wonder if this still prevents the sleep.

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

1 participant