React-native-firebase: 馃敟 Android Assemble Release fail - Execution failed for task ':react-native-firebase:compileReleaseJavaWithJavac'.

Created on 15 Jan 2019  路  2Comments  路  Source: invertase/react-native-firebase


Issue

(:fire:) Android assembleRelease failing after recent upgrade(5.2.0).

Only in Docker, link to the docker file



Log


Download https://jcenter.bintray.com/com/squareup/okhttp/okhttp/2.7.5/okhttp-2.7.5.jar
:react-native-firebase:compileReleaseJavaWithJavac/builds/telldus/live-app-v3/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseBackgroundNotificationActionReceiver.java:9: error: cannot find symbol
import com.facebook.react.HeadlessJsTaskService;
^
symbol: class HeadlessJsTaskService
location: package com.facebook.react
/builds/telldus/live-app-v3/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseBackgroundNotificationActionReceiver.java:10: error: cannot find symbol
import com.facebook.react.ReactApplication;
^
symbol: class ReactApplication
location: package com.facebook.react
/builds/telldus/live-app-v3/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseBackgroundNotificationActionsService.java:5: error: cannot find symbol
import com.facebook.react.HeadlessJsTaskService;
^
symbol: class HeadlessJsTaskService
location: package com.facebook.react
/builds/telldus/live-app-v3/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseBackgroundNotificationActionsService.java:7: error: package com.facebook.react.jstasks does not exist
import com.facebook.react.jstasks.HeadlessJsTaskConfig;
^
/builds/telldus/live-app-v3/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseBackgroundNotificationActionsService.java:14: error: cannot find symbol
public class RNFirebaseBackgroundNotificationActionsService extends HeadlessJsTaskService {
^
symbol: class HeadlessJsTaskService
/builds/telldus/live-app-v3/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseBackgroundNotificationActionsService.java:17: error: cannot find symbol
HeadlessJsTaskConfig getTaskConfig(Intent intent) {
^
symbol: class HeadlessJsTaskConfig
location: class RNFirebaseBackgroundNotificationActionsService
/builds/telldus/live-app-v3/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/Utils.java:12: error: cannot find symbol
import com.facebook.react.common.LifecycleState;
^
symbol: class LifecycleState
location: package com.facebook.react.common
/builds/telldus/live-app-v3/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseBackgroundMessagingService.java:6: error: cannot find symbol
import com.facebook.react.HeadlessJsTaskService;
^
symbol: class HeadlessJsTaskService
location: package com.facebook.react
/builds/telldus/live-app-v3/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseBackgroundMessagingService.java:8: error: package com.facebook.react.jstasks does not exist
import com.facebook.react.jstasks.HeadlessJsTaskConfig;
^
/builds/telldus/live-app-v3/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseBackgroundMessagingService.java:13: error: cannot find symbol
public class RNFirebaseBackgroundMessagingService extends HeadlessJsTaskService {
^
symbol: class HeadlessJsTaskService
/builds/telldus/live-app-v3/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseBackgroundMessagingService.java:16: error: cannot find symbol
HeadlessJsTaskConfig getTaskConfig(Intent intent) {
^
symbol: class HeadlessJsTaskConfig
location: class RNFirebaseBackgroundMessagingService
/builds/telldus/live-app-v3/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessagingService.java:7: error: cannot find symbol
import com.facebook.react.HeadlessJsTaskService;
^
symbol: class HeadlessJsTaskService
location: package com.facebook.react
/builds/telldus/live-app-v3/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/functions/RNFirebaseFunctionsPackage.java:14: error: RNFirebaseFunctionsPackage is not abstract and does not override abstract method createJSModules() in ReactPackage
public class RNFirebaseFunctionsPackage implements ReactPackage {
^
/builds/telldus/live-app-v3/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/functions/RNFirebaseFunctions.java:85: error: cannot find symbol
.toHashMap()
^
symbol: method toHashMap()
location: variable wrapper of type ReadableMap
/builds/telldus/live-app-v3/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/perf/RNFirebasePerformancePackage.java:14: error: RNFirebasePerformancePackage is not abstract and does not override abstract method createJSModules() in ReactPackage
public class RNFirebasePerformancePackage implements ReactPackage {
^
/builds/telldus/live-app-v3/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/database/RNFirebaseDatabasePackage.java:14: error: RNFirebaseDatabasePackage is not abstract and does not override abstract method createJSModules() in ReactPackage
public class RNFirebaseDatabasePackage implements ReactPackage {
^
/builds/telldus/live-app-v3/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/auth/RNFirebaseAuthPackage.java:14: error: RNFirebaseAuthPackage is not abstract and does not override abstract method createJSModules() in ReactPackage
public class RNFirebaseAuthPackage implements ReactPackage {
^
/builds/telldus/live-app-v3/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/auth/RNFirebaseAuth.java:864: error: getCurrentActivity() is not public in ReactContext; cannot be accessed from outside package
Activity activity = mReactContext.getCurrentActivity();
^
/builds/telldus/live-app-v3/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/auth/RNFirebaseAuth.java:1042: error: getCurrentActivity() is not public in ReactContext; cannot be accessed from outside package
final Activity activity = mReactContext.getCurrentActivity();
^
/builds/telldus/live-app-v3/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/admob/RNFirebaseAdMobPackage.java:14: error: RNFirebaseAdMobPackage is not abstract and does not override abstract method createJSModules() in ReactPackage
public class RNFirebaseAdMobPackage implements ReactPackage {
^
/builds/telldus/live-app-v3/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/analytics/RNFirebaseAnalyticsPackage.java:16: error: RNFirebaseAnalyticsPackage is not abstract and does not override abstract method createJSModules() in ReactPackage
public class RNFirebaseAnalyticsPackage implements ReactPackage {
^
/builds/telldus/live-app-v3/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/links/RNFirebaseLinksPackage.java:14: error: RNFirebaseLinksPackage is not abstract and does not override abstract method createJSModules() in ReactPackage
public class RNFirebaseLinksPackage implements ReactPackage {
^
/builds/telldus/live-app-v3/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/links/RNFirebaseLinks.java:29: error: RNFirebaseLinks is not abstract and does not override abstract method onActivityResult(int,int,Intent) in ActivityEventListener
public class RNFirebaseLinks extends ReactContextBaseJavaModule implements ActivityEventListener, LifecycleEventListener {
^
/builds/telldus/live-app-v3/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/links/RNFirebaseLinks.java:152: error: method does not override or implement a method from a supertype
@Override
^
/builds/telldus/live-app-v3/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/links/RNFirebaseLinks.java:157: error: method does not override or implement a method from a supertype
@Override
^
/builds/telldus/live-app-v3/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/fabric/crashlytics/RNFirebaseCrashlyticsPackage.java:14: error: RNFirebaseCrashlyticsPackage is not abstract and does not override abstract method createJSModules() in ReactPackage
public class RNFirebaseCrashlyticsPackage implements ReactPackage {
^
/builds/telldus/live-app-v3/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseBackgroundNotificationActionReceiver.java:24: error: cannot find symbol
WritableMap notificationMap = Arguments.makeNativeMap(extras.getBundle("notification"));
^
symbol: method makeNativeMap(Bundle)
location: class Arguments
/builds/telldus/live-app-v3/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseBackgroundNotificationActionReceiver.java:31: error: cannot find symbol
WritableMap results = Arguments.makeNativeMap(extrasBundle);
^
symbol: method makeNativeMap(Bundle)
location: class Arguments
/builds/telldus/live-app-v3/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseBackgroundNotificationActionReceiver.java:47: error: cannot find symbol
ReactApplication reactApplication = (ReactApplication) context.getApplicationContext();
^
symbol: class ReactApplication
location: class RNFirebaseBackgroundNotificationActionReceiver
/builds/telldus/live-app-v3/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseBackgroundNotificationActionReceiver.java:47: error: cannot find symbol
ReactApplication reactApplication = (ReactApplication) context.getApplicationContext();
^
symbol: class ReactApplication
location: class RNFirebaseBackgroundNotificationActionReceiver
/builds/telldus/live-app-v3/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseBackgroundNotificationActionReceiver.java:66: error: cannot find symbol
HeadlessJsTaskService.acquireWakeLockNow(context);
^
symbol: variable HeadlessJsTaskService
location: class RNFirebaseBackgroundNotificationActionReceiver

This is a part of the log, there were some 59 errors.



Project Files






iOS

ios/Podfile:

  • [ ] I'm not using Pods
  • [x] I'm using Pods and my Podfile looks like:
# N/A

AppDelegate.m:

// N/A

Android

android/build.gradle:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    ext {
        buildToolsVersion = "27.0.3"
        minSdkVersion = 21
        compileSdkVersion = 27
        targetSdkVersion = 26
        supportLibVersion = "27.1.1"
    }
    repositories {
        google()
        jcenter()
        maven {
            url 'https://maven.fabric.io/public'
        }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.4'
        classpath 'com.google.gms:google-services:4.2.0'
        classpath 'io.fabric.tools:gradle:1.26.1'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        mavenLocal()
        google()
        jcenter()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }
    }
}

subprojects {
    afterEvaluate {project ->
        if (project.hasProperty("android")) {
            android {
                compileSdkVersion rootProject.ext.compileSdkVersion
                buildToolsVersion rootProject.ext.buildToolsVersion
            }
        }
    }
}

task wrapper(type: Wrapper) {
    gradleVersion = '4.4'
    distributionUrl = distributionUrl.replace("bin", "all")
}

android/app/build.gradle:

apply plugin: "com.android.application"
apply plugin: "io.fabric"

import com.android.build.OutputFile

def readVersion() {
    def parsedJson = new groovy.json.JsonSlurper().parseText(file('../../package.json').text)
    return parsedJson.version
}

def readVersionCode() {
    def version = readVersion()
    def (major, minor, patch) = version.tokenize('.')
    return (major.toInteger() * 10000) + (minor.toInteger() * 100) + (patch.toInteger())
}

project.ext.react = [
    entryFile: "index.js",
    extraPackagerArgs: ["--sourcemap-output", file("$buildDir/../../sourcemap.js")]
]

apply from: "../../node_modules/react-native/react.gradle"

/**
 * Set this to true to create two separate APKs instead of one:
 *   - An APK that only works on ARM devices
 *   - An APK that only works on x86 devices
 * The advantage is the size of the APK is reduced by about 4MB.
 * Upload all the APKs to the Play Store and people will download
 * the correct one based on the CPU architecture of their device.
 */
def enableSeparateBuildPerCPUArchitecture = false

/**
 * Run Proguard to shrink the Java bytecode in release builds.
 */
def enableProguardInReleaseBuilds = false

android {
    compileSdkVersion rootProject.ext.compileSdkVersion
    buildToolsVersion rootProject.ext.buildToolsVersion

    defaultConfig {
        applicationId "com.telldus.live.mobile"
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        versionCode readVersionCode()
        versionName readVersion()
        multiDexEnabled true
        ndk {
            abiFilters "armeabi-v7a", "x86"
        }
        manifestPlaceholders = [googleMapsAPIKey: GOOGLE_MAPS_API_KEY, pushSenderId: PUSH_SENDER_ID]
    }
    splits {
        abi {
            reset()
            enable enableSeparateBuildPerCPUArchitecture
            universalApk false  // If true, also generate a universal APK
            include "armeabi-v7a", "x86"
        }
    }
    buildTypes {
        debug {
            applicationIdSuffix ""
            // Disable fabric build ID generation for debug builds
            ext.enableCrashlytics = false
        }
        release {
            applicationIdSuffix ""
            minifyEnabled enableProguardInReleaseBuilds
            signingConfig signingConfigs.release
            proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
        }
    }
    // applicationVariants are e.g. debug, release
    applicationVariants.all { variant ->
        variant.outputs.each { output ->
            // For each separate APK per architecture, set a unique version code as described here:
            // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
            def versionCodes = ["armeabi-v7a":1, "x86":2]
            def abi = output.getFilter(OutputFile.ABI)
            if (abi != null) {  // null for the universal-debug, universal-release variants
                output.versionCodeOverride =
                        versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
            }
        }
    }
}

dependencies {
    implementation project(':react-native-gesture-handler')
    implementation project(':react-native-orientation-locker')
    implementation project(':react-native-svg')
    implementation(project(':react-native-firebase')) {
        exclude group: "com.google.firebase"
    }
    implementation 'me.leolin:ShortcutBadger:1.1.21@aar'
    implementation(project(':react-native-maps')){
        exclude group: 'com.google.android.gms'
    }
    implementation (project(':react-native-device-info')){
        exclude group: "com.google.android.gms"
    }
    implementation project(':react-native-rsa-native')
    implementation project(':react-native-udp')
    implementation project(':react-native-sensitive-info')
    implementation project(':react-native-accessibility')
    implementation project(':react-native-i18n')
    implementation project(':react-native-extra-dimensions-android')
    implementation project(':react-native-vector-icons')
    implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
    // Specifying and forcing exact RN version used in package.json . This is to fix issue of RN mismatch 
    // https://github.com/facebook/react-native/issues/19259#issuecomment-389064401
    // will need to update here too on upgrading RN.
    implementation ("com.facebook.react:react-native:0.57.8")
    {
        force = true
    }
    implementation('com.crashlytics.sdk.android:crashlytics:2.9.6') {
      transitive = true;
    }
    implementation project(':react-native-sqlite-storage')
    implementation 'com.android.support:multidex:1.0.2'
    implementation ("com.google.android.gms:play-services-base:16.0.1") {
        force = true;
    }
    implementation ("com.google.android.gms:play-services-maps:16.0.0") {
        force = true;
    }
    implementation ("com.google.android.gms:play-services-gcm:16.0.0") {
        force = true;
    }
    implementation ('com.google.firebase:firebase-core:16.0.6') {
        force = true;
    }
    implementation ('com.google.firebase:firebase-messaging:17.3.4') {
        force = true;
    }
    implementation(project(":react-native-google-signin")){
        exclude group: "com.google.android.gms"
    }
    implementation ('com.google.android.gms:play-services-auth:16.0.0') {
        force = true;
    }
}

// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use
task copyDownloadableDepsToLibs(type: Copy) {
    from configurations.compile
    into 'libs'
}

apply plugin: 'com.google.gms.google-services'

android/settings.gradle:

rootProject.name = 'TelldusLiveApp'
include ':react-native-gesture-handler'
project(':react-native-gesture-handler').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-gesture-handler/android')
include ':react-native-google-signin'
project(':react-native-google-signin').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-google-signin/android')
include ':react-native-orientation-locker'
project(':react-native-orientation-locker').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-orientation-locker/android')
include ':react-native-svg'
project(':react-native-svg').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-svg/android')
include ':react-native-firebase'
project(':react-native-firebase').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-firebase/android')
include ':react-native-rsa-native'
project(':react-native-rsa-native').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-rsa-native/android')
include ':react-native-udp'
project(':react-native-udp').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-udp/android')
include ':react-native-sensitive-info'
project(':react-native-sensitive-info').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-sensitive-info/android')
include ':react-native-accessibility'
project(':react-native-accessibility').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-accessibility/android')
include ':react-native-maps'
project(':react-native-maps').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-maps/lib/android')
include ':react-native-i18n'
project(':react-native-i18n').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-i18n/android')
include ':app'
include ':react-native-extra-dimensions-android'
project(':react-native-extra-dimensions-android').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-extra-dimensions-android/android')
include ':react-native-device-info'
project(':react-native-device-info').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-device-info/android')
include ':react-native-vector-icons'
project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
include ':react-native-sqlite-storage'
project(':react-native-sqlite-storage').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-sqlite-storage/src/android')

MainApplication.java:

package com.telldus.live.mobile;

import android.app.Application;
import android.util.Log;

import com.facebook.react.ReactApplication;
import com.swmansion.gesturehandler.react.RNGestureHandlerPackage;
import org.wonday.orientation.OrientationPackage;
import com.facebook.react.ReactInstanceManager;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;
import com.facebook.soloader.SoLoader;
import com.telldus.live.mobile.MainActivity;

import java.util.Arrays;
import java.util.List;

import com.horcrux.svg.SvgPackage;
import com.learnium.RNDeviceInfo.RNDeviceInfo;
import com.oblador.vectoricons.VectorIconsPackage;
import ca.jaysoo.extradimensions.ExtraDimensionsPackage;
import com.crashlytics.android.Crashlytics;
import com.crashlytics.android.core.CrashlyticsCore;
import io.fabric.sdk.android.Fabric;
import org.pgsqlite.SQLitePluginPackage;
import com.AlexanderZaytsev.RNI18n.RNI18nPackage;
import io.invertase.firebase.RNFirebasePackage;
import io.invertase.firebase.messaging.RNFirebaseMessagingPackage;
import io.invertase.firebase.notifications.RNFirebaseNotificationsPackage;
import io.invertase.firebase.fabric.crashlytics.RNFirebaseCrashlyticsPackage;
import com.RNRSA.RNRSAPackage;
import com.tradle.react.UdpSocketsModule;
import br.com.classapp.RNSensitiveInfo.RNSensitiveInfoPackage;
import com.reactlibrary.RNReactNativeAccessibilityPackage;
import com.airbnb.android.react.maps.MapsPackage;
import co.apptailor.googlesignin.RNGoogleSigninPackage;

public class MainApplication extends Application implements ReactApplication {

    private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
        @Override
        public boolean getUseDeveloperSupport() {
            return BuildConfig.DEBUG;
        }

        @Override
        protected List<ReactPackage> getPackages() {
            return Arrays.<ReactPackage>asList(
                new SQLitePluginPackage(),
                new RNDeviceInfo(),
                new VectorIconsPackage(),
                new ExtraDimensionsPackage(),
                new MainReactPackage(),
                new RNGestureHandlerPackage(),
                new RNGoogleSigninPackage(),
                new OrientationPackage(),
                new SvgPackage(),
                new RNFirebasePackage(),
                new RNFirebaseMessagingPackage(),
                new RNFirebaseNotificationsPackage(),
                new RNFirebaseCrashlyticsPackage(),
                new RNRSAPackage(),
                new UdpSocketsModule(),
                new RNSensitiveInfoPackage(),
                new RNReactNativeAccessibilityPackage(),
                new MapsPackage(),
                new RNI18nPackage()
            );
        }

        @Override
        protected String getJSMainModuleName() {
            return "index";
        }
    };

    @Override
    public ReactNativeHost getReactNativeHost() {
            return mReactNativeHost;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        // saving current locale of the user inorder to reload the app(inside MainActivity) on locale change.
        MainActivity.currentLocale = getResources().getConfiguration().locale.toString();
        // Set up Crashlytics, disabled for debug builds
        // Required! Even though as this is done, RNFirebase, Crashlytics Docs did not metion this step.
        Crashlytics crashlyticsKit = new Crashlytics.Builder()
          .core(new CrashlyticsCore.Builder().disabled(BuildConfig.DEBUG).build())
          .build();
        Fabric.with(this, crashlyticsKit);
        SoLoader.init(this, /* native exopackage */ false);
    }
}

AndroidManifest.xml:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.telldus.live.mobile">

    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-permission android:name="android.permission.BLUETOOTH" />
    <uses-permission android:name="android.permission.VIBRATE" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>

    <application
      android:name=".MainApplication"
      android:allowBackup="false"
      android:largeHeap="true"
      android:label="@string/app_name"
      android:icon="@mipmap/ic_launchers"
      android:theme="@style/AppTheme">
        <meta-data
          android:name="com.google.android.geo.API_KEY"
          android:value="${googleMapsAPIKey}"/>
        <activity
          android:name=".MainActivity"
          android:label="@string/app_name"
            android:launchMode="singleTop"
          android:theme="@style/SplashTheme"
            android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation|layoutDirection|locale">
          <intent-filter>
              <action android:name="android.intent.action.MAIN" />
              <category android:name="android.intent.category.LAUNCHER" />
          </intent-filter>
        </activity>
        <activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
        <service android:name="io.invertase.firebase.messaging.RNFirebaseMessagingService">
          <intent-filter>
            <action android:name="com.google.firebase.MESSAGING_EVENT" />
          </intent-filter>
        </service>
        <service android:name="io.invertase.firebase.messaging.RNFirebaseInstanceIdService">
          <intent-filter>
            <action android:name="com.google.firebase.INSTANCE_ID_EVENT"/>
          </intent-filter>
        </service>
        <receiver android:name="io.invertase.firebase.notifications.RNFirebaseNotificationReceiver"/>
        <receiver android:enabled="true" android:exported="true"  android:name="io.invertase.firebase.notifications.RNFirebaseNotificationsRebootReceiver">
          <intent-filter>
            <action android:name="android.intent.action.BOOT_COMPLETED"/>
            <action android:name="android.intent.action.QUICKBOOT_POWERON"/>
            <action android:name="com.htc.intent.action.QUICKBOOT_POWERON"/>
            <category android:name="android.intent.category.DEFAULT" />
          </intent-filter>
        </receiver>

        <!-- Set custom default icon. This is used when no icon is set for incoming notification messages.
        See README(https://goo.gl/l4GJaQ) for more. -->
        <meta-data
          android:name="com.google.firebase.messaging.default_notification_icon"
          android:resource="@drawable/icon_notif" />
        <!-- Set color used with incoming notification messages. This is used when no color is set for the incoming
            notification message. See README(https://goo.gl/6BKBk7) for more. -->
        <meta-data
          android:name="com.google.firebase.messaging.default_notification_color"
          android:resource="@color/brandSecondary" />
        <meta-data
          android:name="com.google.firebase.messaging.default_notification_channel_id"
          android:value="${pushSenderId}"/>
        <meta-data android:name="firebase_crashlytics_collection_enabled" android:value="false" />
    </application>

</manifest>


Environment

  • Platform that you're experiencing the issue on:

    • [ ] iOS

    • [x ] Android

    • [ ] iOS but have not tested behavior on Android

    • [ ] Android but have not tested behavior on iOS

    • [ ] Both

  • If known, the version of the platform are you experiencing the issue on:

    • ADD_SOMETHING_HERE e.g. iOS 10 or Android API 28

  • Operating System:

    • [ x] MacOS, version: N/A

    • [ ] Windows, version: N/A

    • [ x] Other, please specify: Ubuntu

  • Build Tools:

    • ADD_SOMETHING_HERE e.g. Xcode 10, Android Studio 3.2

  • React Native version:

    • 0.57.8

  • React Native Firebase library version:

    • ~5.2.0

  • Firebase module(s) you're using that has the issue:

    • [x] N/A

    • [ ] Authentication

    • [ ] Analytics

    • [ ] Cloud Firestore

    • [ ] Cloud Messaging (FCM)

    • [ ] Crashlytics

    • [ ] Dynamic Links

    • [ ] Functions Callable

    • [ ] Invites

    • [ ] Instance ID

    • [ ] Notifications

    • [ ] Performance Monitoring

    • [ ] Realtime Database

    • [ ] Remote Config

    • [ ] Storage

  • Are you using TypeScript?

    • [ X] No

    • [ ] Yes, version: N/A

  • Are you using Expo, e.g. ExpoKit?

    • [x] No

    • [ ] Yes, I've _not_ ejected

    • [ ] Yes, but I have ejected to ExpoKit

    • [ ] Yes, but I have ejected to vanilla React Native

    • Expo version: N/A




Think react-native-firebase is great? Please consider supporting the project with any of the below:

Stale

All 2 comments

Hello 馃憢, this issue has been automatically marked as stale because it has not had activity for quite some time. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.

Closing this issue after a prolonged period of inactivity. If this is still present in the latest release, please feel free to create a new issue with up-to-date information.

Was this page helpful?
0 / 5 - 0 ratings