Skip to content

Latest commit

 

History

History
34 lines (19 loc) · 2.32 KB

File metadata and controls

34 lines (19 loc) · 2.32 KB

FAQ

Android

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. Must compile against 26+ as plugin is using API 26 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)

  6. 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

  7. Make sure you have updated your Android SDK Manager libraries:

image

  1. 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

    ...