-
Notifications
You must be signed in to change notification settings - Fork 283
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
Build fails after downloading @havesource/cordova-plugin-push plugin . #239
Comments
I just encountered this problem as well. I fixed it by adding to config.xml:
Then running:
I haven't done extensive testing yet but it seems to work on my end. If this is indeed the solution, hopefully it can be merged into the main repo so we can remove that preference value from our config files. EDIT: Someone has already submitted a pull request at #224 which sets the version to 1.7.10 |
Try the solution shown here #218 (comment) |
The notification popup is not displayed because in android API 33 we have to request for the permission manually, there is a PR that you can test: #238 |
Don't use Master version 3.0.1 use |
@lordStrider I tried your solution but still not getting the popup . |
Here's what I've done to personally fix it.
This has been tested on Android 9, Android 13 and Android 14 Beta devices at BrowserStack. What I've found is:
From what I'm reading, people have issues with iOS too. If that doesn't concern you, the above should be all you need. Hope the above helps someone! And hopefully @havesource is able to push out an update that addresses these issues, or maybe someone (with extensive knowledge in the area) can fork the project and continue providing support. |
@ggiordan Sorry for the confusion. I meant after adding the plugin in step 3, I downloaded each file from #238 (there's only three files) and overwrote the originals on my filesystem with the downloaded files. I'm somewhat of a git newbie so there's likely a command that does that automatically, but it was just three files so it's done very quickly. EDIT: I've updated that step to be clearer for anyone in the future. |
Bug Report
Getting Error after giving cordova build command (@havesource/cordova-plugin-push is installed) .
Expected Behaviour
Build Successful without any errors
Actual Behaviour
Build fails as soon as we give the cordova build command.
Following is the error:
Adding classpath: com.google.gms:google-services:4.3.8
Warning: The 'kotlin-android-extensions' Gradle plugin is deprecated. Please use this migration guide (https://goo.gle/kotlin-android-extensions-deprecation) to start working with View Binding (https://developer.android.com/topic/libraries/view-binding) and the 'kotlin-parcelize' plugin.
FAILURE: Build failed with an exception.
The Android Gradle plugin supports only kotlin-android-extensions Gradle plugin version 1.6.20 and higher.
The following dependencies do not satisfy the required version:
root project 'Gp' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.20
In my root folders build.gradle file I have this code :
dependencies {
classpath "com.android.tools.build:gradle:${cordovaConfig.AGP_VERSION}"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${cordovaConfig.KOTLIN_VERSION}"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Already tried :
1.statically changed AGP and KOTLIN versions like following :
classpath "com.android.tools.build:gradle:7.4.2"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.21"
2.Lowered jdk version to 8 current is 11
3.Lowered gradle version to 7.4.2 current is 8.2.1
4.Lowered cordova version to 10 current is 12
5.Lowered android studio version to Android Studio Dolphin | 2021.3.1 current is Android Studio Giraffe | 2022.3.1
Even after lowering and trying faced the same error+ few new errors too.
Project Installed Platforms:
Groovy: 3.0.17
Java version "11.0.19"
Android Studio Giraffe | 2022.3.1
----------------------xxxxxxxxxxxxxx-------------------------
The text was updated successfully, but these errors were encountered: