I used a code in app.component.ts to press back key twice to exit from app. it is work with when Built the app from following commands.
ionic cordova build android
ionic cordova run android --device
But when use the following commands, device back key action not triggers.
ionic cordova build android --prod
ionic cordova run android --device --prod
Is it a behaviour of “
--prod” tag? or something else?