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

Network checking for online/offline is not executed when app is in backgroud mode #102

Open
pedrofurtado opened this issue Mar 13, 2020 · 5 comments

Comments

@pedrofurtado
Copy link

No description provided.

@PieterVanPoyer
Copy link
Contributor

Hey Pedro

Indeed, the plugin does not check online/offline while being in the background.
As far as I know, on Android there is no checking while being in the background.
For ios, and other platforms I cannot answer the question.

Kind regards
Pieter

@pedrofurtado
Copy link
Author

@PieterVanPoyer Thanks for feedback 👍

@pedrofurtado
Copy link
Author

cc @DiegoZurita

@KevinToala
Copy link

I was testing in version 2.0.1 and if I can get the offline / online connection status in the background

@PieterVanPoyer PieterVanPoyer mentioned this issue Jun 7, 2020
5 tasks
@breautek
Copy link
Contributor

breautek commented Jun 7, 2020

For ios, and other platforms I cannot answer the question.

iOS webviews don't execute javascript while the app is in the background, so processing background tasks within the webview is generally is difficult if not impossible. For example, the native code might send the event to javascript, but your app won't be able to respond to it until the app comes back into the foreground.

Apple generally discourages apps running code in the background except for very specific scenarios.

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

4 participants