You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, it seems our manifest placeholders are overriden by the plugin.
If the plugin is added the manifestPlaceholders array is replaced by an array containing onesignal_app_id and onesignal_google_project_number.
This causes any usage of the alternativeAppName placeholder to break:
Error: Attribute application@label at AndroidManifest.xml:7:9-35 requires a placeholder substitution but no value for <alternativeAppName> is provided
Steps to reproduce?
1. Add the manifestPlaceholders property to the android projects build.gradle and assign some placeholders.
2. Use the placeholder(s) in the Android Manifest
3. Add the plugin to the Ionic/Capacitor project (and run `npx cap sync` etc)
4. Observe that the project placeholders are overriden by the plugin placeholders and therefore the manifest parsing fails
What did you expect to happen?
The placeholders provided by the plugin to be additive rather than replacing the placeholders in the project.
OneSignal Cordova SDK version
3.3.1
Which platform(s) are affected?
iOS
Android
Relevant log output
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
leonluc-dev
changed the title
[Bug]: Manifestplaceholders are overridden by plugin
[Bug]: Android manifestplaceholders are overridden by plugin
May 17, 2023
What happened?
Our Ionic/Capacitor Androidproject has a few manifestPlaceholder values defines in it's build.gradle like this:
However, it seems our manifest placeholders are overriden by the plugin.
If the plugin is added the manifestPlaceholders array is replaced by an array containing
onesignal_app_id
andonesignal_google_project_number
.This causes any usage of the alternativeAppName placeholder to break:
Error: Attribute application@label at AndroidManifest.xml:7:9-35 requires a placeholder substitution but no value for <alternativeAppName> is provided
Steps to reproduce?
What did you expect to happen?
The placeholders provided by the plugin to be additive rather than replacing the placeholders in the project.
OneSignal Cordova SDK version
3.3.1
Which platform(s) are affected?
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: