The solution from @djett was great but we needed the ability to add new intent-filters to the android manifest instead of merging with the current one. I found a slightly different version of the same hook which supports optional additions instead of merges. Maybe someone who is better than me at XML could try implement the mode=“add|merge|replace|etc” options from the cordova plugin docs in which this hook is based off
Here’s the hook:
If anyone has issues running ionic build android
with an error about unbound prefix’s, then you need to add this to the widget
element at the top of your config.xml
xmlns:android="http://schemas.android.com/apk/res/android"