OneSignal / OneSignal-Cordova-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your Ionic, PhoneGap CLI, PhoneGap Build, Cordova, or Sencha Touch app with OneSignal. Supports Android, iOS, and Amazon's Fire OS platforms. https://onesignal.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: grade script clobbers manifestPlaceholder settings

dtarnawsky opened this issue · comments

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

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

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.

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!

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

I apologize for the delay we are investigating the issue

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!