Problem when creating the apk android (Barcode scanner)

Hi there, i have a working barcode scanner app on ionic view but when i build the apk to android the button that calls the camera does nothing, help!