My Bluetooth app is running well when I am building the app with
ionic cordova build android command.
BUT when I am building my app with -- prod
flag i.e.
ionic cordova build android --prod
my app is not getting access to the BLUETOOTH SERIAL cordova plugin and running as if it is on a desktop browser without cordova support.
I am using …
Maybe you're rootpage is called before your platform.ready() is called, so try to initialize value of rootpage in platform.ready().