Skip to content
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

[Bug]: grade script clobbers manifestPlaceholder settings #928

Closed
2 of 3 tasks
dtarnawsky opened this issue Oct 3, 2023 · 6 comments · Fixed by #937
Closed
2 of 3 tasks

[Bug]: grade script clobbers manifestPlaceholder settings #928

dtarnawsky opened this issue Oct 3, 2023 · 6 comments · Fixed by #937

Comments

@dtarnawsky
Copy link

dtarnawsky commented Oct 3, 2023

What happened?

The build-extras-onesignal.gradle script is replacing entries in manifestPlaceHolders of build.gradle.

This means that if you have a entry in manifestPlaceholders called AUTH_URL_SCHEME you will get a manifestMerger error:
Manifest merger failed : Attribute data@scheme at AndroidManifest.xml requires a placeholder substitution but no value for <AUTH_URL_SCHEME> is provided.

Steps to reproduce?

1. Use the repo https://github.com/dtarnawsky/onesignal-807.git
2. npx ionic build && npx cap sync
3. npx cap run android

After build you get the error: 
Error: Attribute data@scheme at AndroidManifest.xml requires a placeholder substitution but no value for <AUTH_URL_SCHEME> is provided.

Note: If you remove onesignal-cordova-plugin then the application will run.

What did you expect to happen?

The gradle script should not alter any entries in manifestPlaceholders of build.gradle

OneSignal Cordova SDK version

onesignal-cordova-plugin 5.0.1

Which platform(s) are affected?

  • iOS
  • Android

Relevant log output

> Task :app:processDebugMainManifest FAILED
        /.../android/app/src/main/AndroidManifest.xml Error:
        Attribute data@scheme at AndroidManifest.xml requires a placeholder substitution but no value for
        <AUTH_URL_SCHEME> is provided.
        
        See https://developer.android.com/r/studio-ui/build/manifest-merger for more information about the manifest
        merger.
        
        
        FAILURE: Build failed with an exception.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@jennantilla
Copy link
Contributor

@dtarnawsky thank you for reaching out! We're looking into this and will get back to you as soon as possible.

@christablogs
Copy link

Any update on this? Ionic and Onesignal are two pretty significant platforms, so I would expect paid products on both of them would integrate well together without breaking the app.

@jbw716
Copy link

jbw716 commented Oct 27, 2023

Just wanted to chime in to say that we are also experiencing issues with a paid, enterprise application as a result of this.
Thanks for any updates!

@christablogs
Copy link

Any update. It's been a month so our only option is to move to another Push notification service where it will not break our app

@emawby
Copy link
Contributor

emawby commented Nov 7, 2023

I apologize for the delay we are investigating the issue

@emawby emawby linked a pull request Nov 7, 2023 that will close this issue
18 tasks
@jennantilla
Copy link
Contributor

Hello everyone! A fix for this is included in our latest release, 5.0.3. Please let us know if you have any additional questions or concerns!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants