FirebaseMessaging.getInstance(firebaseApp) for secondary app supposed to be public but it's private?
问题 I'm trying to subscribe to an FCM (Firebase Cloud Messaging) topic for a secondary Firebase App and according to the documentation this could be done by the overloaded getInstance which takes the secondary FirebaseApp instance as a parameter: https://firebase.google.com/docs/reference/admin/java/reference/com/google/firebase/messaging/FirebaseMessaging#public-static-synchronized-firebasemessaging-getinstance-firebaseapp-app public static synchronized FirebaseMessaging getInstance (FirebaseApp