Cordova-android 10 update not working cordova-plugin-network-information plugin

When updating cordova-android from 7 to 10 the cordova-plugin-network-information plugin is not able to read the connection type, as I have internet validation on login I cannot log into the application because the connection always returns UNKNOWN , and in version 7 of cordova-android it works normally. I need to update to cordova-android version as images are not showing in webview in andoid api 30 in cordova-andoid version 7.

Cordova-android 10.1.2
cordova-plugin-network-information 3.0.0