When running a mobile application (BLE Central sample) provided in XDK, it complains that
Your project includes Cordova plugins that are not included in App Preview. These plugins are not supported by App Preview:
cordova-plugin-ble-central, ionic-plugin-keyboard, cordova-plugin-compat, cordova-plugin-whitelist.
Why would XDK provide a BLE template that cannot be executed properly in App Preview?
App Preview is a general-purpose tool that is limited to the core Cordova plugins. If you want to run an app that requires other than the core plugins you'll need to build and install your app. It's actually a very fast operation, if you are using Android. See these docs for more details: