diff --git a/cli/src/cordova.ts b/cli/src/cordova.ts index 33eba05881..93418c444b 100644 --- a/cli/src/cordova.ts +++ b/cli/src/cordova.ts @@ -383,7 +383,7 @@ export async function writeCordovaAndroidManifest(cordovaPlugins: Plugin[], conf const pathParts = getPathParts(configElement.$.parent || configElement.$.target); if (pathParts.length > 1) { if (pathParts.pop() === 'application') { - if (configElement.$.mode && configElement.$.mode === 'merge') { + if (configElement.$.mode && configElement.$.mode === 'merge' && xmlElement.startsWith(' { applicationXMLAttributes.push(`${ek}="${e.$[ek]}"`); });