Plugin OneSignal

Hi,

I wanted to install OneSignal without going through Zappier. So I installed the following library:

It works perfectly well during testing and in web version. On the other hand during the build in APK, I have a dependency error.

Blockquote

Configure project :react-native-firebase
react-native-firebase: using React Native prebuilt binary from /home/gradle/builds/AdaloApp/node_modules/react-native/android
Dependency resolved to an incompatible version: Dependency(fromArtifactVersion=ArtifactVersion(groupId=com.onesignal, artifactId=OneSignal, version=3.15.6), toArtifact=Artifact(groupId=com.google.android.gms, artifactId=play-services-base), toArtifactVersionString=[10.2.1, 16.1.99])

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine the dependencies of task ‘:app:lintVitalRelease’.

In project ‘app’ a resolved Google Play services library dependency depends on another at an exact version (e.g. “[10.2.
1, 16.1.99]”, but isn’t being resolved to that version. Behavior exhibited by the library will be unknown.

Dependency failing: com.onesignal:OneSignal:3.15.6 → com.google.android.gms:play-services-base@[10.2.1, 16.1.99], but p
lay-services-base version was 17.0.0.

The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art
ifact with the issue.
– Project ‘app’ depends on project ‘react’ which depends onto com.onesignal:OneSignal@3.15.6
– Project ‘app’ depends onto com.google.firebase:firebase-iid-interop@{strictly 17.0.0}
– Project ‘app’ depends onto com.onesignal:OneSignal@{strictly 3.15.6}
– Project ‘app’ depends onto com.google.android.gms:play-services-location@{strictly 16.0.0}
– Project ‘app’ depends onto com.google.android.gms:play-services-base@16.1.0
– Project ‘app’ depends onto com.google.firebase:firebase-messaging@{strictly 20.2.4}
– Project ‘app’ depends onto com.google.firebase:firebase-iid@{strictly 20.2.3}
– Project ‘app’ depends onto com.google.android.gms:play-services-base@{strictly 17.0.0}
– Project ‘app’ depends onto com.google.firebase:firebase-messaging@20.2.4

For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep
endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at github/google/play-services-plugins and disable by adding “googleServices { disableVersionCheck = false }” to your b
uild.gradle file.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at help.gradle.or

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use ‘–warning-mode all’ to show the individual deprecation warnings.
See docs.gradle.or/6.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 8s

Hi, @FabienB have you achieved to implement
OneSignal to Adalo?
I just wanted to use OneSignal for to track user acceptance of my app’s notification request pop-up.