Ionic Android version problem

when I add functionalitis like camera,drawing on canvas, in my ionic project which having android version 7…but when I run .apk file in kitkat version device and in android 4.4. and 5.2 …my application functionalities not work properly like…not opening camera in android 4.4 but opening in android 6.0 such problem of my app …please tell me any solution please how my app will work fine in all device ?