I am trying to use the Ionic Native/Cordova Diagnostic plugin with Capacitor. By default diagnostic installs a lot of modules that I don’t need ( Contacts, calendar etc ). In their github page [ link ] they mention that we can add
<preference name="cordova.plugins.diagnostic.modules" value="[list of modules]" />
in config.xml
.
First problem for me is capacitor does not have config.xml. I tried to create a config.xml
in the root of the app and added the tags but it did not work.
I have been trying to do this the right way, on deploying the app store throws a lot of warnings regarding declaring variables in the info.plist file ( i know adding will solve it ) but i am not sure why i have to add so many modules and where to add the config to limit it.
Any help is appreciated. Thank you.
Ionic:
ionic (Ionic CLI) : 4.9.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.0.0-rc.0
@angular-devkit/build-angular : 0.11.4
@angular-devkit/schematics : 7.1.4
@angular/cli : 7.1.4
@ionic/angular-toolkit : 1.2.2
System:
NodeJS : v8.11.3 (/usr/local/bin/node)
npm : 6.6.0
OS : macOS High Sierra
Capacitor
“@capacitor/cli”: “^1.0.0-beta.13”,
“@capacitor/core”: “^1.0.0-beta.13”,
“@capacitor/ios”: “^1.0.0-beta.13”,
Diagnostic
“@ionic-native/diagnostic”: “^5.0.0”,
“cordova.plugins.diagnostic”: “^4.0.10”,