-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intent filter block missing at AndroidManifest.xml file #334
Comments
@veronicatc never had this problem, are you sure that you don't remove the plugin or do some changes in manifest during compilation and build processes? |
@WuglyakBolgoink I finally found that this was a problem caused by using edit-config in config.xml file. I was using merge, but it still removed the block. I changed this in my config.xml:
to use cordova-custom-config plugin like this:
and this fixed the issue. I did this after finding this comment on a stackoverflow page, from 2018:
This is the link in case it is useful to anyone: https://stackoverflow.com/questions/40446058/cordova-change-androidmanifest-using-config-xml-file |
@veronicatc great! PS: can you please fix the link for SO too? |
@WuglyakBolgoink fixed! |
When adding the plugin to my project and then running the app for the first time with cordova run android, it works as expected.
But if I then make any change to my project, and run cordova run android again, then this intent filter block is missing from the AndroidManifest.xml file:
<intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="$URL_SCHEME"/> </intent-filter>
I need to remove the plugin, and add it back every time before compiling.
Any ideas why it could happen?
Using:
Cordova Android 9.1
Cordova 10
Thanks.
The text was updated successfully, but these errors were encountered: