Phonegap Barcode scanner issue in io13

Recently build ionic app with xCode 11 and testing on iOS 13 iphone. Phonegap barcode scanner opens in background and i have to close the app and then click again then ask for camera permission and open the scanner.
Appreciate your help.