gap:config-file not working
pastet89 opened this issue · comments
No matter what I try I cannot get the gap:config-file
to work. The build compiles without errors, but there are no changes in the AndroidManifest.xml.
This is my code:
<gap:config-file platform="android" parent="/application">
<meta-data android:name="google_analytics_adid_collection_enabled" android:value="false" />
</gap:config-file>
I tried also:
- Putting it into the
<platform name="android">
node and out of it. - Tried:
parent="/application"
,parent="/manifest/application"
This is how it's done now: https://cordova.apache.org/docs/en/latest/plugin_ref/spec.html#edit-config
@andersborgabiro Thanks, however, it didn't work for me either. I spent few hours trying all combinations I could think of, tried both eidt-config
and config-file
, various Xpath values, inside and outside the Android platform node, nothing works for me.
I've only used edit-config for iOS, so I don't have a good example. It no doubt works there.
Do you use cli-8.0.0?
No, I use cli-7.0.1 and I build online through build.phonegap.com.
Any reason for doing that? cli-7.0.1 is very old. I use PGB too.