There is a problem with cordova-plugin-network-information on Android. Even if there is internet connection, after the app is opened for a while, when I resume the app from the background and I check connection with navigator.connection.type, it returns connection.type = NONE: I tried to do an ajax request to verify the connection, and it works, so there is connection. If I close and re-open the app it returns connection.type = 4G. I use email@example.com and firstname.lastname@example.org.
My code to check the connection status is: