Should I edit package.json or config.xml?

Config.xml

<widget id="io.ionic.starter" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>Name</name>
    <description>Description</description>
    <author email="contact" href="http://site.com/">Site</author>
    <content src="index.html" />

Or
Package.json

"name": "Name",
    "version": "1.0.0",
    "author": "Ionic",
    "homepage": "http://site.com/",

I was thinking to update both ?

Yes. One is for your “package” of the app, the other is the base for the generated apps via Cordova. Different jobs.

1 Like

What is the recommended procedure to be sure that the correct versions for cordova plugins are installed when using Ionic 3, should the versions be fixed in package.json or in config.xml? Do the config files automatically sync (and which way) when installing the platform? And what is the purpose of having both config files?