I wrote: android - phonegap permission for bluetooth without bluetooth - Stack Overflow phonegap permission for bluetooth without bluetooth · Issue #353 · dpa99c/cordova-diagnostic-plugin · GitHub The author of the Cordova Diagnostic plugin answered me: It's vital that the preference be added to your config.xml before you install the plugin, otherwise the preference will not be applied and all modules will be added. This is because, due to limitations of the Cordova CLI hooks, this plugin must use the npm install process to apply the module preferences and this runs before the Cordova CLI when installing a plugin. If you change the modules specified in the preference, you'll need to uninstall then re-install the plugin to your project to apply the changes. you should try: cordova plugin rm cordova . plugins . diagnostic -- nosave npm uninstall cordova . plugins . diagnostic cordova plugin add cordova . plugins . diagnostic -- nosave ..... ..... As outlined in the the documentation: IMPORTANT: Because Phonegap Build does not support npm-scripts hooks (see here for details) the module selection mechanism of this plugin will not work on Phonegap Build. I.e. all modules will be included in the build. This means all modules (including Bluetooth module) will be installed when using Phonegap Build. It is a flaw of Phonegap Build that it supports neither npm or Cordova hook scripts so many plugins do not function correctly with it. ... ... How can I do it in phonegap? Thanks in advance
... View more