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/07/09 08:51:15 UTC

[GitHub] [cordova-plugin-network-information] PieterVanPoyer commented on issue #82: Type none when change type Network un app background

PieterVanPoyer commented on issue #82: Type none when change type Network un app background
URL: https://github.com/apache/cordova-plugin-network-information/issues/82#issuecomment-509553121
 
 
   Hello,
   
   The #74 does not solve the network change trigger when the app is idle (or in the background) for android.
   So, it does not solve this issue.
   
   The Pull Request solves that the networkinfo is not reliable when the app is in the foreground. 
   Tries to solve [issue-64](https://github.com/apache/cordova-plugin-network-information/issues/64)
   The plugin uses (before the PR and after the PR) the android BroadcastReceiver. 
   
   Android can stop the listeners on the BroadcastReceivers to save battery power when the app becomes idle.
   To solve this the android - plugin should be rewritten and use the JobScheduler API (min-SDK Lollipop). (see: https://developer.android.com/reference/android/app/job/JobScheduler.html  and https://medium.com/@iiro.krankka/its-time-to-kiss-goodbye-to-your-implicit-broadcastreceivers-eefafd9f4f8a)
   But that should be another pull request.
   
   Kind regards,
   PIV
   

----------------------------------------------------------------
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