Also I'm not really clear why this is specifically needed for C3 - don't the original plugins already add those tags? Why is this different in C3?
Regarding this question, the tag I mentioned is only for the config.xml
of the Cordova Project itself, which Construct 3 generates automatically in the Construct 3 Build Service.
However, for the new Firebase Cordova plugins, the authors expected the users to add those tags when they write their Cordova Projects prior to cordova prepare
. Therefore, for us to add those tags in a Construct 3 project, we would have to manually edit the config.xml every time. Hence, the reason for forking the Cordova plugins to append the hooks script.
In any case, your recommendation works fine as well, I'll just make a tiny Cordova plugin that implements the hooks script, independently.
Thank you.