I am currently developing an Ionic app that requires the Push and GoogleMaps plugins.
If I create a blank/new project, add android platform, and install only one of the plugins then everything works perfectly. However, as soon as both plugins are installed, Android won't build.
Here's what I've done so far and is the most basic/simple way to demonstrate the problem:
- ionic start GoogleServicesIsues blank
- cd GoogleServicesIssue
- ionic cordova platforms add android@latest
- ionic cordova plugin add cordova-plugin-googlemaps --variable API_KEY_FOR_ANDROID="123" --variable API_KEY_FOR_IOS="ABC"
- ionic cordova plugin add phonegap-plugin-push --variable FCM_VERSION=15.0.1
- ionic cordova build android
...and the build fails as it cannot find the firebase-messaging library.
Could not resolve all files for configuration ':app:debugCompileClasspath'.
Could not find com.google.firebase:firebase-messaging:15.0.1. Searched in the following locations:
file:/Users/[user]/Library/Android/sdk/extras/android/m2repository/com/google/firebase/firebase-messaging/15.0.1/firebase-messaging-15.0.1.jar
https://jcenter.bintray.com/com/google/firebase/firebase-messaging/15.0.1/firebase-messaging-15.0.1.jar
https://maven.google.com/com/google/firebase/firebase-messaging/15.0.1/firebase-messaging-15.0.1.pom
Is anyone able to figure out how to get these two plugins to work together?