You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/08/19 13:59:20 UTC

[GitHub] [cordova-plugin-network-information] EvelinJK opened a new issue #91: Online event fires every time app resumes from background

EvelinJK opened a new issue #91: Online event fires every time app resumes from background
URL: https://github.com/apache/cordova-plugin-network-information/issues/91
 
 
   # Bug Report
   
   ## Problem
   The online event fires unreliably when an app moves from background to foreground.
   This occurs on `iOS AND Android` for us.
   It might be related to #82 but it is definitely not resolved with 2.0.2 
   
   ### What is expected to happen?
   Online event only fires when network connection was lost and is established again.
   
   ### What does actually happen?
   Online event fires every time the app was in background and comes to foreground again, even though wifi is connected at all times.
   
   ## Information
   We show a message to the user when he goes offline, and one when he goes online again, so we rely on the event listeners.
   
   Offline works fine, but the online event fires every time the App comes from background to foreground although wifi is connected at all times.
   
   The connection seems to go to `type: none' when the App goes to background, which makes the online event fire when the app comes to foreground again.
   
   We pretty much use the code as in the Cordova documentation, so there's no special implementation that could affect the behavior.
   
   ### Environment, Platform, Device
   Tested on iOS (12.4) and Android (9 and 6.0.1)
   
   ### Version information
   React 
   cordova 9.0.0
   
   ## Checklist
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org