Customize phonegap-plugin-barcodescanner and ionic cordova plugin add cordova-plugin-network-information

Hi Team,
In our project we are using

Customize phonegap-plugin-barcodescanner

and

ionic cordova plugin add cordova-plugin-network-information

We are getting conflict issue between these two library.Once i Scan the Barcode after that i check for the presence of network at that time app gets crashed.I can’t find crash log too!! could you please suggest some solution for this problem.

why not check for the presence of a network outside of the scanner?

scanner act as a login page ,Network presence is checked throughout the project due to interaction with network plugin its not advancing to the next page while commenting the network plugin the scanner is working fine