Open omahjoub opened 5 years ago
@omahjoub I had not been able to reproduce your issue.
Can you create from a clean project a minimum reproducible repo of this issue? (with steps)
cordova create androidTest com.foobar.androidTest androidTest && $_
cordova platform add android
cordova plugin add phonegap-plugin-push
Here is a part of my package.json
after executing the commands above.
"dependencies": {
"cordova-android": "^8.0.0",
"cordova-support-google-services": "^1.1.0",
"phonegap-plugin-multidex": "^1.0.0",
"phonegap-plugin-push": "^2.2.3"
},
"devDependencies": {
"cordova-plugin-whitelist": "^1.3.3"
},
"cordova": {
"plugins": {
"cordova-plugin-whitelist": {},
"phonegap-plugin-push": {
"ANDROID_SUPPORT_V13_VERSION": "27.+",
"FCM_VERSION": "11.6.2"
}
},
"platforms": [
"android"
]
google-services.json
file to the root directory of my project.config.xml
to copy google-services.json
to the Android platform.Here is a part of my config.xml
file with the update to copy google-services.json
to the platform:
<platform name="android">
<resource-file src="google-services.json" target="app/google-services.json" />
<allow-intent href="market:*" />
</platform>
$ cordova build android --release
... BUILD SUCCESSFUL in 7s 45 actionable tasks: 26 executed, 19 up-to-date Built the following apk(s): /androidTest/platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk
## Environment
```bash
$ cordova info
cordova-lib@9.0.1 with:
cordova-common@3.2.0
cordova-create@2.0.0
cordova-fetch@2.0.1
cordova-serve@3.0.0
Environment:
OS: darwin
Node: v12.4.0
npm: 6.9.0
$ ./platforms/android/gradlew -v
------------------------------------------------------------
Gradle 4.10.3
------------------------------------------------------------
Build time: 2018-12-05 00:50:54 UTC
Revision: e76905e3a1034e6f724566aeb985621347ff43bc
Kotlin DSL: 1.0-rc-6
Kotlin: 1.2.61
Groovy: 2.4.15
Ant: Apache Ant(TM) version 1.9.11 compiled on March 23 2018
JVM: 1.8.0_212 (Oracle Corporation 25.212-b10)
OS: Mac OS X 10.14.5 x86_64
its possible to use ionic-plugin-firebase and phonegap-plugin-push in the same project? To me this erro show when i try use both.
Hi all, any help will be appreciated, thx.
Expected Behaviour
Android build is ok
Actual Behaviour
Android build fails The build is ok when i remove the
phonegap-plugin-push
Reproduce Scenario (including but not limited to)
Platform and Version
Plugin version
Logs taken while reproducing problem
Installed Plugins In Package JSON