-
Getting java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process {your_package_name}.
Solution 1:
Make sure the google-services.json has the GoogleServicesJson build action
Solution 2:
Make sure your firebase android app package name is the same package name on your Android project.
-
Android initialization should be done on and Android Application class to be able to handle received notifications when application is closed. Since no activity exist when application is closed.
-
You won't receive any push notifications if application is stopped while debugging, should reopen and close again for notifications to work when app closed. This is due to the application being on an unstable state when stopped while debugging.
-
On some phones android background services might be blocked by some application. This is the case of ASUS Zenfone 3 that has an Auto-start manager, which disables background services by default. You need to make sure that your push notification service is not being blocked by some application like this one, since you won't receive push notifications when app is closed if so.
-
Must compile against 28+ as plugin is using API 28 specific things. Here is a great breakdown: http://redth.codes/such-android-api-levels-much-confuse-wow/ (Android project must be compiled using 8.0+ target framework)
-
The package name of your Android aplication must start with lower case or you will get the build error:
Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
-
Make sure you have updated your Android SDK Manager libraries:
-
Topics are case sensitive so "test" and "Test" are different topics.
-
Error 1589 NotificationService Not posting notification without small icon
...
It happen when the message is received, but the notification isn't displayed. If you got this error, it mean you need to tell which one is your app icon on Android Project Properties > Android Manifest > application Icon or in the AndroidManifext.xml file and put android:icon="@drawable/{replace with your icon file name}" in the