iam struck while i tried to cordova build android. i just added ‘cordova-plugin-fcm’ plugin in ionic-v1 and followed the docs steps. but after that i cant solve this build issue. i dont know what iam missing!
added google.services.json in “platform/android/google.services.json”
tried with rootfolder too (www/google.services.json)
added in config.xml file too <resource-file src="google-services.json" target="google-services.json" />
b. add the apply plugin line at the bottom of the file to enable the Gradle plugin:
apply plugin: 'com.android.application'
android {
// ...
}
dependencies {
// ...
compile 'com.google.firebase:firebase-core:12.0.1'
// Getting a "Could not find" error? Make sure you have
// added the Google maven respository to your root build.gradle
}
// ADD THIS AT THE BOTTOM
apply plugin: 'com.google.gms.google-services'
No! sorry for late response @hanigb i just removed all this codes & fcm plugin and made use of lower level versions to finish it off my app first. Based on my requirements, its not a must do list so leaved this part.
also i moved on to the current ionic framework where lots of features,docs and tutorials are available.