invertase / react-native-firebase

🔥 A well-tested feature-rich modular Firebase implementation for React Native. Supports both iOS & Android platforms for all Firebase services.
https://rnfirebase.io
Other
11.7k stars 2.22k forks source link

[Android] FCM no Heads Up Notification Showing, Notification goes only in the system tray. #2670

Closed GnApollo closed 5 years ago

GnApollo commented 5 years ago

Issue

Describe your issue here:

i wanted to implement in my react native app the heads up notification. this is the following code i did.

in my index.js

import React, { Component } from 'react';
import { AppRegistry } from 'react-native';
import { DefaultTheme, Provider as PaperProvider } from 'react-native-paper';
import App from './src/App.js';
import bgMessaging from './src/backgroundNotif';
const theme = {
  ...DefaultTheme,
  roundness: 2,
  colors: {
    ...DefaultTheme.colors,
    primary: '#3f51b5',
    accent: '#f1c40f',
  }
};

export default class myRedux extends Component {
  render() {
    return (
      <PaperProvider theme={theme}>
        <App />
      </PaperProvider>);
  }
}

AppRegistry.registerHeadlessTask('RNFirebaseBackgroundMessage', () => bgMessaging);
AppRegistry.registerComponent('HelpingHand', () => myRedux);

backgrounNotif.js

import type { RemoteMessage } from 'react-native-firebase';

export default async (message: RemoteMessage) => {
  const notification = new firebase.notifications.Notification()
    .setNotificationId('notificationId')
    .setTitle('My notification title')
    .setBody('My notification body')
    .setData({
      key1: 'value1',
      key2: 'value2',
    }).android.setPriority(firebase.notifications.Android.Priority.Max).android.setChannelId('test-channel1');
  console.log(notification);
  await firebase.notifications().displayNotification(notification);

  return Promise.resolve();
}

in App.js

import React, { Component } from 'react';
import allReducers from './reducers/index.js';
import { createStore, compose, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import Main from './components/main.js';
import thunk from "redux-thunk";
import { Provider as PaperProvider } from 'react-native-paper';
import { StyleProvider } from 'native-base';

import getTheme from './theme/components';
import variables from './theme/variables/commonColor';
let composeEnhancers = compose;

const store = createStore(allReducers, composeEnhancers(applyMiddleware(thunk)));
import firebase from "react-native-firebase";

export default class App extends Component {
  componentDidMount() {
    // Build a channel
    const channel = new firebase.notifications.Android.Channel('test-channel', 'Test Channel', firebase.notifications.Android.Importance.Max)
      .setDescription('My apps test channel');

    // Create the channel
    firebase.notifications().android.createChannel(channel);
  }
  render() {
    return (
      <Provider store={store}>
        <StyleProvider style={getTheme(variables)}>
          <PaperProvider>
            <Main />
          </PaperProvider>
        </StyleProvider>
      </Provider>
    );
  }
}

im sending notification to my device using pushTry in this is the json.

{"to":"ez2z4X9fTVo:APA91bH-aESwnXcfC3osA95IhLNFfVDbZpj-pdS9o8rpfrkfOhCcfOLIQXw8QnZlA7yKmmI_jJHthP_R4og_MREI_JG1xci7o8GrMlvVBW0olSMdXX9MIEQxXk--CdMxnPKb-4Gjn6sX","notification":{"title":"Working Good","body":"trying pushTry]"},"priority":"high"}

sadly, the notification is only showing in the system and not showing a headsup notification. i also monitor the logcat of my devices.

10-01 21:26:59.157 1986 3441 D CompatibilityInfo: mCompatibilityFlags - 0 10-01 21:26:59.157 1986 3441 D CompatibilityInfo: applicationDensity - 440 10-01 21:26:59.157 1986 3441 D CompatibilityInfo: applicationScale - 1.0 10-01 21:26:59.189 20329 20475 I m.facebook.orc: Rejecting re-init on previously-failed class java.lang.Class<com.facebook.push.adm.ADMBroadcastReceiver>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/amazon/device/messaging/ADMMessageHandlerBase; 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Class dalvik.system.DexFile.defineClassNative(java.lang.String, java.lang.ClassLoader, java.lang.Object, dalvik.system.DexFile) (DexFile.java:-2) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Class dalvik.system.DexFile.defineClass(java.lang.String, java.lang.ClassLoader, java.lang.Object, dalvik.system.DexFile, java.util.List) (DexFile.java:283) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Class dalvik.system.DexFile.loadClassBinaryName(java.lang.String, java.lang.ClassLoader, java.util.List) (DexFile.java:276) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Class com.facebook.common.dextricks.DexFileLoadNew.loadClassBinaryName(dalvik.system.DexFile, java.lang.String, java.lang.ClassLoader) (:1) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Class com.facebook.common.dextricks.MultiDexClassLoaderJava.loadInnerNewApiClass(java.lang.String, dalvik.system.DexFile[], int) (:24) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Class com.facebook.common.dextricks.MultiDexClassLoaderJava.findClass(java.lang.String) (:70) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Class com.facebook.common.dextricks.MultiDexClassLoaderJava.loadClass(java.lang.String, boolean) (:15) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:367) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Object X.5bk.A00(int, X.0ah) (:565891) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Object X.0QW.A00(int, X.0ah) (:55) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Object X.0e0.next() (:46) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at void X.B3p.A02() (:29) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at void X.B3p.init() (:24) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at void X.578.run() (:48) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Object X.0fR.call() (:39) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at void java.util.concurrent.FutureTask.run() (FutureTask.java:266) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Object java.util.concurrent.Executors$RunnableAdapter.call() (Executors.java:458) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at void java.util.concurrent.FutureTask.run() (FutureTask.java:266) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at void X.0hL.run() (:52) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at void java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) (ThreadPoolExecutor.java:1167) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at void java.util.concurrent.ThreadPoolExecutor$Worker.run() (ThreadPoolExecutor.java:641) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at void X.0hQ.run() (:3) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at void X.0hS.run() (:12) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at void java.lang.Thread.run() (Thread.java:764) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.amazon.device.messaging.ADMMessageHandlerBase" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/system/framework/com.google.android.maps.jar", zip file "/data/app/com.facebook.orca-m87ywGlCJhmBI645loWzbA==/base.apk"],nativeLibraryDirectories=[/data/app/com.facebook.orca-m87ywGlCJhmBI645loWzbA==/lib/arm64, /data/app/com.facebook.orca-m87ywGlCJhmBI645loWzbA==/base.apk!/lib/arm64-v8a, /system/lib64]] 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:134) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Class dalvik.system.DexFile.defineClassNative(java.lang.String, java.lang.ClassLoader, java.lang.Object, dalvik.system.DexFile) (DexFile.java:-2) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Class dalvik.system.DexFile.defineClass(java.lang.String, java.lang.ClassLoader, java.lang.Object, dalvik.system.DexFile, java.util.List) (DexFile.java:283) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Class dalvik.system.DexFile.loadClassBinaryName(java.lang.String, java.lang.ClassLoader, java.util.List) (DexFile.java:276) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Class com.facebook.common.dextricks.DexFileLoadNew.loadClassBinaryName(dalvik.system.DexFile, java.lang.String, java.lang.ClassLoader) (:1) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Class com.facebook.common.dextricks.MultiDexClassLoaderJava.loadInnerNewApiClass(java.lang.String, dalvik.system.DexFile[], int) (:24) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Class com.facebook.common.dextricks.MultiDexClassLoaderJava.findClass(java.lang.String) (:70) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Class com.facebook.common.dextricks.MultiDexClassLoaderJava.loadClass(java.lang.String, boolean) (:15) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:367) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Object X.5bk.A00(int, X.0ah) (:565891) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Object X.0QW.A00(int, X.0ah) (:55) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Object X.0e0.next() (:46) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at void X.B3p.A02() (:29) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at void X.B3p.init() (:24) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at void X.578.run() (:48) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Object X.0fR.call() (:39) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at void java.util.concurrent.FutureTask.run() (FutureTask.java:266) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Object java.util.concurrent.Executors$RunnableAdapter.call() (Executors.java:458) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at void java.util.concurrent.FutureTask.run() (FutureTask.java:266) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at void X.0hL.run() (:52) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at void java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) (ThreadPoolExecutor.java:1167) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at void java.util.concurrent.ThreadPoolExecutor$Worker.run() (ThreadPoolExecutor.java:641) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at void X.0hQ.run() (:3) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at void X.0hS.run() (:12) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at void java.lang.Thread.run() (Thread.java:764) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: 10-01 21:26:59.190 20329 20475 I m.facebook.orc: Rejecting re-init on previously-failed class java.lang.Class<com.facebook.push.adm.ADMBroadcastReceiver>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/amazon/device/messaging/ADMMessageHandlerBase; 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Class dalvik.system.DexFile.defineClassNative(java.lang.String, java.lang.ClassLoader, java.lang.Object, dalvik.system.DexFile) (DexFile.java:-2) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Class dalvik.system.DexFile.defineClass(java.lang.String, java.lang.ClassLoader, java.lang.Object, dalvik.system.DexFile, java.util.List) (DexFile.java:283) 10-01 21:26:59.190 20329 20475 I m.facebook.orc: at java.lang.Class dalvik.system.DexFile.loadClassBinaryName(java.lang.String, java.lang.ClassLoader, java.util.List) (DexFile.java:276) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at java.lang.Class com.facebook.common.dextricks.DexFileLoadNew.loadClassBinaryName(dalvik.system.DexFile, java.lang.String, java.lang.ClassLoader) (:1) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at java.lang.Class com.facebook.common.dextricks.MultiDexClassLoaderJava.loadInnerNewApiClass(java.lang.String, dalvik.system.DexFile[], int) (:24) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at java.lang.Class com.facebook.common.dextricks.MultiDexClassLoaderJava.findClass(java.lang.String) (:70) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at java.lang.Class com.facebook.common.dextricks.MultiDexClassLoaderJava.loadClass(java.lang.String, boolean) (:15) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:367) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at java.lang.Object X.5bk.A00(int, X.0ah) (:565891) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at java.lang.Object X.0QW.A00(int, X.0ah) (:55) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at java.lang.Object X.0e0.next() (:46) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at void X.B3p.A02() (:29) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at void X.B3p.init() (:24) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at void X.578.run() (:48) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at java.lang.Object X.0fR.call() (:39) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at void java.util.concurrent.FutureTask.run() (FutureTask.java:266) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at java.lang.Object java.util.concurrent.Executors$RunnableAdapter.call() (Executors.java:458) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at void java.util.concurrent.FutureTask.run() (FutureTask.java:266) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at void X.0hL.run() (:52) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at void java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) (ThreadPoolExecutor.java:1167) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at void java.util.concurrent.ThreadPoolExecutor$Worker.run() (ThreadPoolExecutor.java:641) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at void X.0hQ.run() (:3) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at void X.0hS.run() (:12) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at void java.lang.Thread.run() (Thread.java:764) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.amazon.device.messaging.ADMMessageHandlerBase" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/system/framework/com.google.android.maps.jar", zip file "/data/app/com.facebook.orca-m87ywGlCJhmBI645loWzbA==/base.apk"],nativeLibraryDirectories=[/data/app/com.facebook.orca-m87ywGlCJhmBI645loWzbA==/lib/arm64, /data/app/com.facebook.orca-m87ywGlCJhmBI645loWzbA==/base.apk!/lib/arm64-v8a, /system/lib64]] 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:134) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at java.lang.Class dalvik.system.DexFile.defineClassNative(java.lang.String, java.lang.ClassLoader, java.lang.Object, dalvik.system.DexFile) (DexFile.java:-2) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at java.lang.Class dalvik.system.DexFile.defineClass(java.lang.String, java.lang.ClassLoader, java.lang.Object, dalvik.system.DexFile, java.util.List) (DexFile.java:283) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at java.lang.Class dalvik.system.DexFile.loadClassBinaryName(java.lang.String, java.lang.ClassLoader, java.util.List) (DexFile.java:276) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at java.lang.Class com.facebook.common.dextricks.DexFileLoadNew.loadClassBinaryName(dalvik.system.DexFile, java.lang.String, java.lang.ClassLoader) (:1) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at java.lang.Class com.facebook.common.dextricks.MultiDexClassLoaderJava.loadInnerNewApiClass(java.lang.String, dalvik.system.DexFile[], int) (:24) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at java.lang.Class com.facebook.common.dextricks.MultiDexClassLoaderJava.findClass(java.lang.String) (:70) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at java.lang.Class com.facebook.common.dextricks.MultiDexClassLoaderJava.loadClass(java.lang.String, boolean) (:15) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:367) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at java.lang.Object X.5bk.A00(int, X.0ah) (:565891) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at java.lang.Object X.0QW.A00(int, X.0ah) (:55) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at java.lang.Object X.0e0.next() (:46) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at void X.B3p.A02() (:29) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at void X.B3p.init() (:24) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at void X.578.run() (:48) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at java.lang.Object X.0fR.call() (:39) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at void java.util.concurrent.FutureTask.run() (FutureTask.java:266) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at java.lang.Object java.util.concurrent.Executors$RunnableAdapter.call() (Executors.java:458) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at void java.util.concurrent.FutureTask.run() (FutureTask.java:266) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at void X.0hL.run() (:52) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at void java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) (ThreadPoolExecutor.java:1167) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at void java.util.concurrent.ThreadPoolExecutor$Worker.run() (ThreadPoolExecutor.java:641) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at void X.0hQ.run() (:3) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at void X.0hS.run() (:12) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: at void java.lang.Thread.run() (Thread.java:764) 10-01 21:26:59.191 20329 20475 I m.facebook.orc: 10-01 21:26:59.195 20329 20475 I m.facebook.orc: Rejecting re-init on previously-failed class java.lang.Class<com.facebook.push.adm.ADMBroadcastReceiver>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/amazon/device/messaging/ADMMessageHandlerBase; 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at java.lang.Class dalvik.system.DexFile.defineClassNative(java.lang.String, java.lang.ClassLoader, java.lang.Object, dalvik.system.DexFile) (DexFile.java:-2) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at java.lang.Class dalvik.system.DexFile.defineClass(java.lang.String, java.lang.ClassLoader, java.lang.Object, dalvik.system.DexFile, java.util.List) (DexFile.java:283) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at java.lang.Class dalvik.system.DexFile.loadClassBinaryName(java.lang.String, java.lang.ClassLoader, java.util.List) (DexFile.java:276) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at java.lang.Class com.facebook.common.dextricks.DexFileLoadNew.loadClassBinaryName(dalvik.system.DexFile, java.lang.String, java.lang.ClassLoader) (:1) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at java.lang.Class com.facebook.common.dextricks.MultiDexClassLoaderJava.loadInnerNewApiClass(java.lang.String, dalvik.system.DexFile[], int) (:24) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at java.lang.Class com.facebook.common.dextricks.MultiDexClassLoaderJava.findClass(java.lang.String) (:70) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at java.lang.Class com.facebook.common.dextricks.MultiDexClassLoaderJava.loadClass(java.lang.String, boolean) (:15) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:367) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at java.lang.Object X.5bk.A00(int, X.0ah) (:565891) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at java.lang.Object X.0QW.A00(int, X.0ah) (:55) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at java.lang.Object X.0e0.next() (:46) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at void X.B3p.A02() (:29) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at void X.B3p.init() (:24) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at void X.578.run() (:48) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at java.lang.Object X.0fR.call() (:39) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at void java.util.concurrent.FutureTask.run() (FutureTask.java:266) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at java.lang.Object java.util.concurrent.Executors$RunnableAdapter.call() (Executors.java:458) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at void java.util.concurrent.FutureTask.run() (FutureTask.java:266) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at void X.0hL.run() (:52) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at void java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) (ThreadPoolExecutor.java:1167) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at void java.util.concurrent.ThreadPoolExecutor$Worker.run() (ThreadPoolExecutor.java:641) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at void X.0hQ.run() (:3) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at void X.0hS.run() (:12) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at void java.lang.Thread.run() (Thread.java:764) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.amazon.device.messaging.ADMMessageHandlerBase" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/system/framework/com.google.android.maps.jar", zip file "/data/app/com.facebook.orca-m87ywGlCJhmBI645loWzbA==/base.apk"],nativeLibraryDirectories=[/data/app/com.facebook.orca-m87ywGlCJhmBI645loWzbA==/lib/arm64, /data/app/com.facebook.orca-m87ywGlCJhmBI645loWzbA==/base.apk!/lib/arm64-v8a, /system/lib64]] 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:134) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at java.lang.Class dalvik.system.DexFile.defineClassNative(java.lang.String, java.lang.ClassLoader, java.lang.Object, dalvik.system.DexFile) (DexFile.java:-2) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at java.lang.Class dalvik.system.DexFile.defineClass(java.lang.String, java.lang.ClassLoader, java.lang.Object, dalvik.system.DexFile, java.util.List) (DexFile.java:283) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at java.lang.Class dalvik.system.DexFile.loadClassBinaryName(java.lang.String, java.lang.ClassLoader, java.util.List) (DexFile.java:276) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at java.lang.Class com.facebook.common.dextricks.DexFileLoadNew.loadClassBinaryName(dalvik.system.DexFile, java.lang.String, java.lang.ClassLoader) (:1) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at java.lang.Class com.facebook.common.dextricks.MultiDexClassLoaderJava.loadInnerNewApiClass(java.lang.String, dalvik.system.DexFile[], int) (:24) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at java.lang.Class com.facebook.common.dextricks.MultiDexClassLoaderJava.findClass(java.lang.String) (:70) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at java.lang.Class com.facebook.common.dextricks.MultiDexClassLoaderJava.loadClass(java.lang.String, boolean) (:15) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:367) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at java.lang.Object X.5bk.A00(int, X.0ah) (:565891) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at java.lang.Object X.0QW.A00(int, X.0ah) (:55) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at java.lang.Object X.0e0.next() (:46) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at void X.B3p.A02() (:29) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at void X.B3p.init() (:24) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at void X.578.run() (:48) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at java.lang.Object X.0fR.call() (:39) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at void java.util.concurrent.FutureTask.run() (FutureTask.java:266) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at java.lang.Object java.util.concurrent.Executors$RunnableAdapter.call() (Executors.java:458) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at void java.util.concurrent.FutureTask.run() (FutureTask.java:266) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at void X.0hL.run() (:52) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at void java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) (ThreadPoolExecutor.java:1167) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at void java.util.concurrent.ThreadPoolExecutor$Worker.run() (ThreadPoolExecutor.java:641) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at void X.0hQ.run() (:3) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at void X.0hS.run() (:12) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: at void java.lang.Thread.run() (Thread.java:764) 10-01 21:26:59.195 20329 20475 I m.facebook.orc: 10-01 21:26:59.198 20329 20475 I m.facebook.orc: Rejecting re-init on previously-failed class java.lang.Class<com.facebook.push.adm.ADMBroadcastReceiver>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/amazon/device/messaging/ADMMessageHandlerBase; 10-01 21:26:59.198 20329 20475 I m.facebook.orc: at java.lang.Class dalvik.system.DexFile.defineClassNative(java.lang.String, java.lang.ClassLoader, java.lang.Object, dalvik.system.DexFile) (DexFile.java:-2) 10-01 21:26:59.198 20329 20475 I m.facebook.orc: at java.lang.Class dalvik.system.DexFile.defineClass(java.lang.String, java.lang.ClassLoader, java.lang.Object, dalvik.system.DexFile, java.util.List) (DexFile.java:283) 10-01 21:26:59.198 20329 20475 I m.facebook.orc: at java.lang.Class dalvik.system.DexFile.loadClassBinaryName(java.lang.String, java.lang.ClassLoader, java.util.List) (DexFile.java:276) 10-01 21:26:59.198 20329 20475 I m.facebook.orc: at java.lang.Class com.facebook.common.dextricks.DexFileLoadNew.loadClassBinaryName(dalvik.system.DexFile, java.lang.String, java.lang.ClassLoader) (:1) 10-01 21:26:59.198 20329 20475 I m.facebook.orc: at java.lang.Class com.facebook.common.dextricks.MultiDexClassLoaderJava.loadInnerNewApiClass(java.lang.String, dalvik.system.DexFile[], int) (:24) 10-01 21:26:59.198 20329 20475 I m.facebook.orc: at java.lang.Class com.facebook.common.dextricks.MultiDexClassLoaderJava.findClass(java.lang.String) (:70) 10-01 21:26:59.198 20329 20475 I m.facebook.orc: at java.lang.Class com.facebook.common.dextricks.MultiDexClassLoaderJava.loadClass(java.lang.String, boolean) (:15) 10-01 21:26:59.198 20329 20475 I m.facebook.orc: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:367) 10-01 21:26:59.198 20329 20475 I m.facebook.orc: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312) 10-01 21:26:59.198 20329 20475 I m.facebook.orc: at java.lang.Object X.5bk.A00(int, X.0ah) (:565891) 10-01 21:26:59.198 20329 20475 I m.facebook.orc: at java.lang.Object X.0QW.A00(int, X.0ah) (:55) 10-01 21:26:59.199 20329 20475 I m.facebook.orc: at java.lang.Object X.0e0.next() (:46) 10-01 21:26:59.199 20329 20475 I m.facebook.orc: at void X.B3p.A02() (:29) 10-01 21:26:59.199 20329 20475 I m.facebook.orc: at void X.B3p.init() (:24) 10-01 21:26:59.199 20329 20475 I m.facebook.orc: at void X.578.run() (:48) 10-01 21:26:59.199 20329 20475 I m.facebook.orc: at java.lang.Object X.0fR.call() (:39) 10-01 21:26:59.199 20329 20475 I m.facebook.orc: at void java.util.concurrent.FutureTask.run() (FutureTask.java:266) 10-01 21:26:59.199 20329 20475 I m.facebook.orc: at java.lang.Object java.util.concurrent.Executors$RunnableAdapter.call() (Executors.java:458) 10-01 21:26:59.199 20329 20475 I m.facebook.orc: at void java.util.concurrent.FutureTask.run() (FutureTask.java:266) 10-01 21:26:59.199 20329 20475 I m.facebook.orc: at void X.0hL.run() (:52) 10-01 21:26:59.199 20329 20475 I m.facebook.orc: at void java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) (ThreadPoolExecutor.java:1167) 10-01 21:26:59.199 20329 20475 I m.facebook.orc: at void java.util.concurrent.ThreadPoolExecutor$Worker.run() (ThreadPoolExecutor.java:641) 10-01 21:26:59.199 20329 20475 I m.facebook.orc: at void X.0hQ.run() (:3) 10-01 21:26:59.199 20329 20475 I m.facebook.orc: at void X.0hS.run() (:12) 10-01 21:26:59.199 20329 20475 I m.facebook.orc: at void java.lang.Thread.run() (Thread.java:764) 10-01 21:26:59.199 20329 20475 I m.facebook.orc: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.amazon.device.messaging.ADMMessageHandlerBase" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/system/framework/com.google.android.maps.jar", zip file "/data/app/com.facebook.orca-m87ywGlCJhmBI645loWzbA==/base.apk"],nativeLibraryDirectories=[/data/app/com.facebook.orca-m87ywGlCJhmBI645loWzbA==/lib/arm64, /data/app/com.facebook.orca-m87ywGlCJhmBI645loWzbA==/base.apk!/lib/arm64-v8a, /system/lib64]] 10-01 21:26:59.199 20329 20475 I m.facebook.orc: at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:134) 10-01 21:26:59.199 20329 20475 I m.facebook.orc: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379) 10-01 21:26:59.199 20329 20475 I m.facebook.orc: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312) 10-01 21:26:59.199 20329 20475 I m.facebook.orc: at java.lang.Class dalvik.system.DexFile.defineClassNative(java.lang.String, java.lang.ClassLoader, java.lang.Object, dalvik.system.DexFile) (DexFile.java:-2) 10-01 21:26:59.199 20329 20475 I m.facebook.orc: at java.lang.Class dalvik.system.DexFile.defineClass(java.lang.String, java.lang.ClassLoader, java.lang.Object, dalvik.system.DexFile, java.util.List) (DexFile.java:283) 10-01 21:26:59.199 20329 20475 I m.facebook.orc: at java.lang.Class dalvik.system.DexFile.loadClassBinaryName(java.lang.String, java.lang.ClassLoader, java.util.List) (DexFile.java:276) 10-01 21:26:59.199 20329 20475 I m.facebook.orc: at java.lang.Class com.facebook.common.dextricks.DexFileLoadNew.loadClassBinaryName(dalvik.system.DexFile, java.lang.String, java.lang.ClassLoader) (:1) 10-01 21:26:59.199 20329 20475 I m.facebook.orc: at java.lang.Class com.facebook.common.dextricks.MultiDexClassLoaderJava.loadInnerNewApiClass(java.lang.String, dalvik.system.DexFile[], int) (:24) 10-01 21:26:59.199 20329 20475 I m.facebook.orc: at java.lang.Class com.facebook.common.dextricks.MultiDexClassLoaderJava.findClass(java.lang.String) (:70) 10-01 21:26:59.199 20329 20475 I m.facebook.orc: at java.lang.Class com.facebook.common.dextricks.MultiDexClassLoaderJava.loadClass(java.lang.String, boolean) (:15) 10-01 21:26:59.199 20329 20475 I m.facebook.orc: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:367) 10-01 21:26:59.199 20329 20475 I m.facebook.orc: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312) 10-01 21:26:59.199 20329 20475 I m.facebook.orc: at java.lang.Object X.5bk.A00(int, X.0ah) (:565891) 10-01 21:26:59.203 20329 20475 I m.facebook.orc: at java.lang.Object X.0QW.A00(int, X.0ah) (:55) 10-01 21:26:59.203 20329 20475 I m.facebook.orc: at java.lang.Object X.0e0.next() (:46) 10-01 21:26:59.203 20329 20475 I m.facebook.orc: at void X.B3p.A02() (:29) 10-01 21:26:59.203 20329 20475 I m.facebook.orc: at void X.B3p.init() (:24) 10-01 21:26:59.203 20329 20475 I m.facebook.orc: at void X.578.run() (:48) 10-01 21:26:59.203 20329 20475 I m.facebook.orc: at java.lang.Object X.0fR.call() (:39) 10-01 21:26:59.203 20329 20475 I m.facebook.orc: at void java.util.concurrent.FutureTask.run() (FutureTask.java:266) 10-01 21:26:59.203 20329 20475 I m.facebook.orc: at java.lang.Object java.util.concurrent.Executors$RunnableAdapter.call() (Executors.java:458) 10-01 21:26:59.203 20329 20475 I m.facebook.orc: at void java.util.concurrent.FutureTask.run() (FutureTask.java:266) 10-01 21:26:59.203 20329 20475 I m.facebook.orc: at void X.0hL.run() (:52) 10-01 21:26:59.203 20329 20475 I m.facebook.orc: at void java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) (ThreadPoolExecutor.java:1167) 10-01 21:26:59.203 20329 20475 I m.facebook.orc: at void java.util.concurrent.ThreadPoolExecutor$Worker.run() (ThreadPoolExecutor.java:641) 10-01 21:26:59.203 20329 20475 I m.facebook.orc: at void X.0hQ.run() (:3) 10-01 21:26:59.203 20329 20475 I m.facebook.orc: at void X.0hS.run() (:12) 10-01 21:26:59.203 20329 20475 I m.facebook.orc: at void java.lang.Thread.run() (Thread.java:764) 10-01 21:26:59.203 20329 20475 I m.facebook.orc: 10-01 21:26:59.255 20329 20475 W msgr.SyncInitializer: Start regular sync initialization 10-01 21:26:59.262 1986 3876 D CompatibilityInfo: mCompatibilityFlags - 0 10-01 21:26:59.263 1986 3876 D CompatibilityInfo: applicationDensity - 440 10-01 21:26:59.263 1986 3876 D CompatibilityInfo: applicationScale - 1.0 10-01 21:26:59.318 1986 2002 I system_server: Background concurrent copying GC freed 186443(17MB) AllocSpace objects, 101(2MB) LOS objects, 41% free, 33MB/57MB, paused 681us total 274.999ms 10-01 21:27:00.005 2519 2519 D KeyguardUpdateMonitor: handleTimeUpdate 10-01 21:27:00.395 20415 20443 I cebook.service: ProcessProfilingInfo new_methods=0 is saved saved_to_disk=0 resolve_classes_delay=8000 10-01 21:27:01.971 1986 2426 D NtpTrustedTime: currentTimeMillis() cache hit 10-01 21:27:02.075 1986 2426 D NtpTrustedTime: currentTimeMillis() cache hit 10-01 21:27:02.079 3720 4137 I TrafficManageService: mina mTrafficStatsReceiver onReceive 10-01 21:27:04.699 1986 2426 D NtpTrustedTime: currentTimeMillis() cache hit 10-01 21:27:04.748 1986 2426 D NtpTrustedTime: currentTimeMillis() cache hit 10-01 21:27:04.751 3720 4137 I TrafficManageService: mina mTrafficStatsReceiver onReceive 10-01 21:27:04.804 1220 1433 E storaged: getDiskStats failed with result NOT_SUPPORTED and size 0 10-01 21:27:04.832 2519 2720 D NetworkController.MobileSignalController(1): getDataNetTypeFromServiceState slotId=1 isUsingCarrierAggregation=false 10-01 21:27:04.832 2519 2720 D NetworkTypeUtils: getDataNetTypeFromServiceState:srcDataNetType = 13, destDataNetType 13 10-01 21:27:04.839 2519 2720 D MobileSignalController: updateDataType mSelectedDataTypeIcon[1]=2131231954, mSelectedDataActivityIndex=6 10-01 21:27:04.839 2519 2720 D TelephonyIcons: getSignalStrengthIcon: slot=1, inetCondition=1, level=0, roaming=false 10-01 21:27:04.845 2519 2720 D TelephonyIcons: null signal icon name: drawable/stat_sys_signal_null 10-01 21:27:04.846 2519 2720 D TelephonyIcons: getDataTypeIcon sub=1

Project Files

ios/Podfile:

Android

Click To Expand

#### Have you converted to AndroidX? - [ ] my application is an AndroidX application? - [x ] I am using `android/gradle.settings` `jetifier=true` for Android compatibility? - [ ] I am using the NPM package `jetifier` for react-native compatibility? #### `android/build.gradle`: ```// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext { buildToolsVersion = "28.0.3" minSdkVersion = 16 compileSdkVersion = 28 targetSdkVersion = 28 supportLibVersion = "28.0.0" } repositories { google() jcenter() } dependencies { classpath("com.android.tools.build:gradle:3.4.1") classpath("com.google.gms:google-services:4.2.0") // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { mavenLocal() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url("$rootDir/../node_modules/react-native/android") } maven { // Android JSC is installed from npm url("$rootDir/../node_modules/jsc-android/dist") } google() jcenter() } } ``` #### `android/app/build.gradle`: ```apply plugin: "com.android.application" import com.android.build.OutputFile /** * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets * and bundleReleaseJsAndAssets). * These basically call `react-native bundle` with the correct arguments during the Android build * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the * bundle directly from the development server. Below you can see all the possible configurations * and their defaults. If you decide to add a configuration block, make sure to add it before the * `apply from: "../../node_modules/react-native/react.gradle"` line. * * project.ext.react = [ * // the name of the generated asset file containing your JS bundle * bundleAssetName: "index.android.bundle", * * // the entry file for bundle generation * entryFile: "index.android.js", * * // https://facebook.github.io/react-native/docs/performance#enable-the-ram-format * bundleCommand: "ram-bundle", * * // whether to bundle JS and assets in debug mode * bundleInDebug: false, * * // whether to bundle JS and assets in release mode * bundleInRelease: true, * * // whether to bundle JS and assets in another build variant (if configured). * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants * // The configuration property can be in the following formats * // 'bundleIn${productFlavor}${buildType}' * // 'bundleIn${buildType}' * // bundleInFreeDebug: true, * // bundleInPaidRelease: true, * // bundleInBeta: true, * * // whether to disable dev mode in custom build variants (by default only disabled in release) * // for example: to disable dev mode in the staging build type (if configured) * devDisabledInStaging: true, * // The configuration property can be in the following formats * // 'devDisabledIn${productFlavor}${buildType}' * // 'devDisabledIn${buildType}' * * // the root of your project, i.e. where "package.json" lives * root: "../../", * * // where to put the JS bundle asset in debug mode * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", * * // where to put the JS bundle asset in release mode * jsBundleDirRelease: "$buildDir/intermediates/assets/release", * * // where to put drawable resources / React Native assets, e.g. the ones you use via * // require('./image.png')), in debug mode * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", * * // where to put drawable resources / React Native assets, e.g. the ones you use via * // require('./image.png')), in release mode * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", * * // by default the gradle tasks are skipped if none of the JS files or assets change; this means * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to * // date; if you have any other folders that you want to ignore for performance reasons (gradle * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ * // for example, you might want to remove it from here. * inputExcludes: ["android/**", "ios/**"], * * // override which node gets called and with what additional arguments * nodeExecutableAndArgs: ["node"], * * // supply additional arguments to the packager * extraPackagerArgs: [] * ] */ project.ext.react = [ entryFile: "index.js", enableHermes: false, // clean and rebuild if changing hermesCommand: "../../node_modules/hermes-engine/%OS-BIN%/hermes", ] 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 = true /** * The preferred build flavor of JavaScriptCore. * * For example, to use the international variant, you can use: * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` * * The international variant includes ICU i18n library and necessary data * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that * give correct results when using with locales other than en-US. Note that * this variant is about 6MiB larger per architecture than default. */ def jscFlavor = 'org.webkit:android-jsc:+' /** * Whether to enable the Hermes VM. * * This should be set on project.ext.react and mirrored here. If it is not set * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode * and the benefits of using Hermes will therefore be sharply reduced. */ def enableHermes = project.ext.react.get("enableHermes", false); android { compileSdkVersion rootProject.ext.compileSdkVersion compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } defaultConfig { applicationId "com.dmmmsu.helpinghand" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionCode 1 versionName "1.0" multiDexEnabled true missingDimensionStrategy 'react-native-camera', 'general' missingDimensionStrategy "RNN.reactNativeVersion", "reactNative57_5" } splits { abi { reset() enable enableSeparateBuildPerCPUArchitecture universalApk false // If true, also generate a universal APK include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" } } signingConfigs { debug { storeFile file('debug.keystore') storePassword 'android' keyAlias 'androiddebugkey' keyPassword 'android' } // release { // if (project.hasProperty('MYAPP_UPLOAD_STORE_FILE')) { // storeFile file(MYAPP_UPLOAD_STORE_FILE) // storePassword MYAPP_UPLOAD_STORE_PASSWORD // keyAlias MYAPP_UPLOAD_KEY_ALIAS // keyPassword MYAPP_UPLOAD_KEY_PASSWORD // } // } } buildTypes { debug { signingConfig signingConfigs.debug // signingConfig signingConfigs.release } release { // Caution! In production, you need to generate your own keystore file. // see https://facebook.github.io/react-native/docs/signed-apk-android. signingConfig signingConfigs.debug minifyEnabled enableProguardInReleaseBuilds 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: // https://developer.android.com/studio/build/configure-apk-splits.html def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] 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 } } } packagingOptions { pickFirst '**/armeabi-v7a/libc++_shared.so' pickFirst '**/x86/libc++_shared.so' pickFirst '**/arm64-v8a/libc++_shared.so' pickFirst '**/x86_64/libc++_shared.so' pickFirst '**/x86/libjsc.so' pickFirst '**/armeabi-v7a/libjsc.so' } } dependencies { implementation project(':@react-native-community_async-storage') implementation project(':react-native-camera') implementation project(':react-native-svg') implementation project(':react-native-launch-navigator') implementation project(':react-native-extra-dimensions-android') implementation project(':@react-native-community_geolocation') implementation project(':react-native-firebase') implementation project(':react-native-gesture-handler') implementation project(':react-native-reanimated') implementation fileTree(dir: "libs", include: ["*.jar"]) implementation "com.google.firebase:firebase-auth:17.0.0" implementation "com.google.firebase:firebase-invites:17.0.0" // implementation "com.google.android.gms:play-services-base:16.1.0" implementation "com.google.firebase:firebase-core:16.0.9" implementation "com.facebook.react:react-native:+" // From node_modules implementation "com.google.firebase:firebase-firestore:19.0.0" implementation(project(':react-native-maps')){ exclude group: 'com.google.android.gms', module: 'play-services-base' exclude group: 'com.google.android.gms', module: 'play-services-maps' } implementation "com.google.firebase:firebase-messaging:18.0.0" implementation 'me.leolin:ShortcutBadger:1.1.21@aar' implementation 'com.google.android.gms:play-services-base:+' implementation 'com.google.android.gms:play-services-maps:+' if (enableHermes) { def hermesPath = "../../node_modules/hermes-engine/android/"; debugImplementation files(hermesPath + "hermes-debug.aar") releaseImplementation files(hermesPath + "hermes-release.aar") } else { implementation jscFlavor } } // 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 from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) apply plugin: 'com.google.gms.google-services' ``` #### `android/settings.gradle`: ```rootProject.name = 'HelpingHand' include ':@react-native-community_async-storage' project(':@react-native-community_async-storage').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-community/async-storage/android') include ':react-native-camera' project(':react-native-camera').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-camera/android') include ':react-native-svg' project(':react-native-svg').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-svg/android') include ':react-native-launch-navigator' project(':react-native-launch-navigator').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-launch-navigator/android') 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-community_geolocation' project(':@react-native-community_geolocation').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-community/geolocation/android') include ':react-native-firebase' project(':react-native-firebase').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-firebase/android') 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-reanimated' project(':react-native-reanimated').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-reanimated/android') apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) include ':app' ``` #### `MainApplication.java`: ``package com.dmmmsu.helpinghand; import android.app.Application; import android.util.Log; import com.facebook.react.PackageList; import com.facebook.hermes.reactexecutor.HermesExecutorFactory; import com.facebook.react.bridge.JavaScriptExecutorFactory; import com.facebook.react.ReactApplication; import com.reactnativecommunity.asyncstorage.AsyncStoragePackage; import org.reactnative.camera.RNCameraPackage; import com.horcrux.svg.SvgPackage; import uk.co.workingedge.RNLaunchNavigator.RNLaunchNavigatorPackage; import ca.jaysoo.extradimensions.ExtraDimensionsPackage; import com.reactnativecommunity.geolocation.GeolocationPackage; import io.invertase.firebase.RNFirebasePackage; import com.swmansion.gesturehandler.react.RNGestureHandlerPackage; import com.swmansion.reanimated.ReanimatedPackage; import com.facebook.react.ReactNativeHost; import com.facebook.react.ReactPackage; import com.facebook.soloader.SoLoader; import io.invertase.firebase.links.RNFirebaseLinksPackage; import io.invertase.firebase.auth.RNFirebaseAuthPackage; import io.invertase.firebase.firestore.RNFirebaseFirestorePackage; import io.invertase.firebase.notifications.RNFirebaseNotificationsPackage; import io.invertase.firebase.messaging.RNFirebaseMessagingPackage; import java.util.List; public class MainApplication extends Application implements ReactApplication { private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { @Override public boolean getUseDeveloperSupport() { return BuildConfig.DEBUG; } @Override protected List getPackages() { @SuppressWarnings("UnnecessaryLocalVariable") List packages = new PackageList(this).getPackages(); // Packages that cannot be autolinked yet can be added manually here, for example: // packages.add(new MyReactNativePackage()); packages.add(new RNFirebaseAuthPackage()); packages.add(new RNFirebaseLinksPackage()); packages.add(new RNFirebaseFirestorePackage()); packages.add(new RNFirebaseNotificationsPackage()); packages.add(new RNFirebaseMessagingPackage()); return packages; } @Override protected String getJSMainModuleName() { return "index"; } }; @Override public ReactNativeHost getReactNativeHost() { return mReactNativeHost; } @Override public void onCreate() { super.onCreate(); SoLoader.init(this, /* native exopackage */ false); } } ``` #### `AndroidManifest.xml`: ``` ```


Environment

Click To Expand

**`react-native info` output:** ``` warn Package hermes-engine has been ignored because it contains invalid configuration. Reason: Cannot find module 'hermes-engine\package.json' warn The following packages use deprecated "rnpm" config that will stop working from next release: - react-native-extra-dimensions-android: https://github.com/Sunhat/react-native-extra-dimensions-android#readme - react-native-maps: https://github.com/react-native-community/react-native-maps#readme Please notify their maintainers about it. You can find more details at https://github.com/react-native-community/cli/blob/master/docs/configuration.md#migration-guide. info Fetching system and libraries information... System: OS: Windows 10 CPU: (4) x64 Intel(R) Core(TM) i3-3110M CPU @ 2.40GHz Memory: 2.47 GB / 5.84 GB Binaries: Node: 10.16.3 - C:\Program Files\nodejs\node.EXE Yarn: 1.17.3 - C:\Users\Archelle\AppData\Roaming\npm\yarn.CMD npm: 6.9.0 - C:\Program Files\nodejs\npm.CMD IDEs: Android Studio: Version 3.4.0.0 AI-183.6156.11.34.5692245 ``` - **Platform that you're experiencing the issue on**: - [ ] iOS - [ ] Android - [ ] **iOS** but have not tested behavior on Android - [x ] **Android** but have not tested behavior on iOS - [ ] Both - **`react-native-firebase` version you're using that has this issue:** - `"react-native-firebase": "^5.5.6"` - **`Firebase` module(s) you're using that has the issue:** - `Firebase Notification, Firebase Messaging` - **Are you using `TypeScript`?** - `N`


Think react-native-firebase is great? Please consider supporting all of the project maintainers and contributors by donating via our Open Collective where all contributors can submit expenses. [Learn More]

ghost commented 5 years ago

@samulon13 this is different code from the code which you provided in the linked issue...

In this issue you are missing setSound('default') in the backgrounNotif.js headsup notification does not work without it.... For more information take a look here: https://developer.android.com/guide/topics/ui/notifiers/notifications#Heads-up

Let me know if it is working with setSound()

GnApollo commented 5 years ago

senior @dusan-dragon im sorry that i change my code. after i configure multidex as senior @mikehardy taught i got this log cat different from earlier i posted.

10-02 15:43:31.323 10898 10898 D SoLoader: init start
10-02 15:43:31.323 10898 10929 I DpmTcmClient: RegisterTcmMonitor from: com.android.okhttp.TcmIdleTimerMonitor
10-02 15:43:31.323 10898 10898 D SoLoader: adding system library source: /vendor/lib
10-02 15:43:31.324 10898 10898 D SoLoader: adding system library source: /system/lib
10-02 15:43:31.327 10898 10898 D SoLoader: adding application source: com.facebook.soloader.DirectorySoSource[root = /data/app/com.dmmmsu.helpinghand-p0xfPnq6k7d5EeZvhBBQFw==/lib/arm64 flags = 0]
10-02 15:43:31.328 10898 10898 D SoLoader: adding backup source from : com.facebook.soloader.ApkSoSource[root = /data/data/com.dmmmsu.helpinghand/lib-main flags = 1]
10-02 15:43:31.328 10898 10898 D SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /system/lib flags = 2]
10-02 15:43:31.328 10898 10898 D SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /vendor/lib flags = 2]
10-02 15:43:31.328 10898 10898 D SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /data/app/com.dmmmsu.helpinghand-p0xfPnq6k7d5EeZvhBBQFw==/lib/arm64 flags = 0]
10-02 15:43:31.328 10898 10898 D SoLoader: Preparing SO source: com.facebook.soloader.ApkSoSource[root = /data/data/com.dmmmsu.helpinghand/lib-main flags =
1]
10-02 15:43:31.329 10898 10898 V fb-UnpackingSoSource: locked dso store /data/user/0/com.dmmmsu.helpinghand/lib-main
10-02 15:43:31.335 10898 10898 I fb-UnpackingSoSource: dso store is up-to-date: /data/user/0/com.dmmmsu.helpinghand/lib-main
10-02 15:43:31.335 10898 10898 V fb-UnpackingSoSource: releasing dso store lock for /data/user/0/com.dmmmsu.helpinghand/lib-main
10-02 15:43:31.335 10898 10898 D SoLoader: init finish: 4 SO sources prepared
10-02 15:43:31.336 10898 10898 D SoLoader: init exiting
10-02 15:43:31.356  1986  2086 D CompatibilityInfo: mCompatibilityFlags - 0
10-02 15:43:31.356  1986  2086 D CompatibilityInfo: applicationDensity - 440
10-02 15:43:31.356  1986  2086 D CompatibilityInfo: applicationScale - 1.0
10-02 15:43:31.407  1986  2086 D CompatibilityInfo: mCompatibilityFlags - 0
10-02 15:43:31.407  1986  2086 D CompatibilityInfo: applicationDensity - 440
10-02 15:43:31.407  1986  2086 D CompatibilityInfo: applicationScale - 1.0
10-02 15:43:31.504  1986  3628 D CompatibilityInfo: mCompatibilityFlags - 0
10-02 15:43:31.504  1986  3628 D CompatibilityInfo: applicationDensity - 440
10-02 15:43:31.504  1986  3628 D CompatibilityInfo: applicationScale - 1.0
10-02 15:43:31.574 10898 10917 I FA      : Tag Manager is not found and thus will not be used
10-02 15:43:31.584  2519  2519 I StatusBar: onNotificationPosted key:0|com.dmmmsu.helpinghand|0|FCM-Notification:63682564|10348 isUpdate:false
10-02 15:43:31.585  2519  2519 I StatusBar: handleNotification key:0|com.dmmmsu.helpinghand|0|FCM-Notification:63682564|10348 isUpdate:false
10-02 15:43:31.585  2519  2519 D StatusBar: addNotification key=0|com.dmmmsu.helpinghand|0|FCM-Notification:63682564|10348
10-02 15:43:31.590  3720  3720 V c       : onNotificationPostedCallBack:StatusBarNotification(pkg=com.dmmmsu.helpinghand user=UserHandle{0} id=0 tag=FCM-Notification:63682564 key=0|com.dmmmsu.helpinghand|0|FCM-Notification:63682564|10348: Notification(channel=test-channel pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x10 color=0x00000000 vis=PRIVATE))
10-02 15:43:31.592  3720  3720 V onNotificationPostedCallBack: flags=16
10-02 15:43:31.594  2519  2519 I StatusBar: No peeking: 0|com.dmmmsu.helpinghand|0|FCM-Notification:63682564|10348
10-02 15:43:31.594  2519  2519 I StatusBar: addNotification isHeadsUped:false
10-02 15:43:31.594  2519  2519 I StatusBar: addNotification key=0|com.dmmmsu.helpinghand|0|FCM-Notification:63682564|10348
10-02 15:43:31.684  2519  2519 I StatusBar: No peeking: 0|com.dmmmsu.helpinghand|0|FCM-Notification:63682564|10348
10-02 15:43:31.695  2519  2519 D StatusBar: update app badge num: com.dmmmsu.helpinghand/,num=2,isAllowed=true,userId=0
10-02 15:43:31.696  1986  3628 I QuietUtils: type:5, flags:0, cpkg:android
10-02 15:43:31.697  1986  2086 W ActivityManager: Sending non-protected broadcast android.intent.action.APPLICATION_MESSAGE_UPDATE from system 2519:com.android.systemui/1000 pkg com.android.systemui. Callers=
10-02 15:43:31.698  2878  2878 I Launcher.ApplicationsMessage: onReceive true
10-02 15:43:31.698  2878  2878 I Launcher.ApplicationsMessage: update com.dmmmsu.helpinghand/ to 2
10-02 15:43:31.852  1986  2426 D NtpTrustedTime: currentTimeMillis() cache hit
10-02 15:43:31.871  1986  2086 D CompatibilityInfo: mCompatibilityFlags - 0
10-02 15:43:31.871  1986  2086 D CompatibilityInfo: applicationDensity - 440
10-02 15:43:31.871  1986  2086 D CompatibilityInfo: applicationScale - 1.0
10-02 15:43:31.903  1986  2426 D NtpTrustedTime: currentTimeMillis() cache hit
10-02 15:43:31.909  3720  4137 I TrafficManageService: mina mTrafficStatsReceiver onReceive
10-02 15:43:31.955  1986  2086 D CompatibilityInfo: mCompatibilityFlags - 0
10-02 15:43:31.955  1986  2086 D CompatibilityInfo: applicationDensity - 440
10-02 15:43:31.955  1986  2086 D CompatibilityInfo: applicationScale - 1.0
10-02 15:43:32.161  1986  2200 D CompatibilityInfo: mCompatibilityFlags - 0
10-02 15:43:32.161  1986  2200 D CompatibilityInfo: applicationDensity - 440
10-02 15:43:32.161  1986  2200 D CompatibilityInfo: applicationScale - 1.0
10-02 15:43:32.174  1986  2200 D CompatibilityInfo: mCompatibilityFlags - 0
10-02 15:43:32.174  1986  2200 D CompatibilityInfo: applicationDensity - 440
10-02 15:43:32.174  1986  2200 D CompatibilityInfo: applicationScale - 1.0
10-02 15:43:32.634  1986  2087 D CompatibilityInfo: mCompatibilityFlags - 0
10-02 15:43:32.634  1986  2087 D CompatibilityInfo: applicationDensity - 440
10-02 15:43:32.634  1986  2087 D CompatibilityInfo: applicationScale - 1.0
10-02 15:43:32.859  1986  2087 D NtpTrustedTime: currentTimeMillis() cache hit
10-02 15:43:32.948  1986  2087 D NtpTrustedTime: currentTimeMillis() cache hit
10-02 15:43:32.951  3720  4137 I TrafficManageService: mina mTrafficStatsReceiver onReceive
10-02 15:43:38.862  1220  1433 E storaged: getDiskStats failed with result NOT_SUPPORTED and size 0
10-02 15:43:40.480  2878 10886 I TransmissionProvider: unbindService & quitSafely
10-02 15:43:41.711  1986  2426 D NtpTrustedTime: currentTimeMillis() cache hit
10-02 15:43:41.758  1986  2426 D NtpTrustedTime: currentTimeMillis() cache hit
10-02 15:43:41.763  3720  4137 I TrafficManageService: mina mTrafficStatsReceiver onReceive
10-02 15:43:41.948  1986  2002 I system_server: Background concurrent copying GC freed 113534(18MB) AllocSpace objects, 163(3MB) LOS objects, 40% free, 34MB/58MB, paused 227us total 222.569ms
10-02 15:43:47.448  2519  2720 D NetworkController.MobileSignalController(1): getDataNetTypeFromServiceState slotId=1  isUsingCarrierAggregation=false
10-02 15:43:47.448  2519  2720 D NetworkTypeUtils: getDataNetTypeFromServiceState:srcDataNetType = 13, destDataNetType 13
10-02 15:43:47.451  2519  2720 D MobileSignalController: updateDataType mSelectedDataTypeIcon[1]=2131231954, mSelectedDataActivityIndex=6
10-02 15:43:47.452  2519  2720 D TelephonyIcons: getSignalStrengthIcon: slot=1, inetCondition=1, level=1, roaming=false
10-02 15:43:47.455  2519  2720 D TelephonyIcons: null signal icon name: drawable/stat_sys_signal_null
10-02 15:43:47.456  2519  2720 D TelephonyIcons: getDataTypeIcon sub=1
ghost commented 5 years ago

What about that setSound() ?

GnApollo commented 5 years ago

What about that setSound() ?

backgroundNotif.js

import type { RemoteMessage } from 'react-native-firebase';

export default async (message: RemoteMessage) => {
  const notification = new firebase.notifications.Notification()
    .setNotificationId('notificationId')
    .setTitle('My notification title')
    .setBody('My notification body')
    .setSound('default')
    .setData({
      key1: 'value1',
      key2: 'value2',
    }).android.setPriority(firebase.notifications.Android.Priority.Max).android.setChannelId('test-channel1');
  console.log(notification);
  await firebase.notifications().displayNotification(notification);

  return Promise.resolve();
}

log cat

10-02 16:08:11.710  2519  2519 I StatusBar: onNotificationPosted key:0|com.dmmmsu.helpinghand|0|FCM-Notification:65162697|10349 isUpdate:false
10-02 16:08:11.710  2519  2519 I StatusBar: handleNotification key:0|com.dmmmsu.helpinghand|0|FCM-Notification:65162697|10349 isUpdate:false
10-02 16:08:11.711  2519  2519 D StatusBar: addNotification key=0|com.dmmmsu.helpinghand|0|FCM-Notification:65162697|10349
10-02 16:08:11.718  3720  3720 V c       : onNotificationPostedCallBack:StatusBarNotification(pkg=com.dmmmsu.helpinghand user=UserHandle{0} id=0 tag=FCM-Notification:65162697 key=0|com.dmmmsu.helpinghand|0|FCM-Notification:65162697|10349: Notification(channel=test-channel pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x10 color=0x00000000 vis=PRIVATE))
10-02 16:08:11.718  3720  3720 V onNotificationPostedCallBack: flags=16
10-02 16:08:11.723  1986  2200 D CompatibilityInfo: mCompatibilityFlags - 0
10-02 16:08:11.723  1986  2200 D CompatibilityInfo: applicationDensity - 440
10-02 16:08:11.723  1986  2200 D CompatibilityInfo: applicationScale - 1.0
10-02 16:08:11.729  2519  2519 I StatusBar: No peeking: 0|com.dmmmsu.helpinghand|0|FCM-Notification:65162697|10349
10-02 16:08:11.729  2519  2519 I StatusBar: addNotification isHeadsUped:false
10-02 16:08:11.729  2519  2519 I StatusBar: addNotification key=0|com.dmmmsu.helpinghand|0|FCM-Notification:65162697|10349
10-02 16:08:11.819  2519  2519 I StatusBar: No peeking: 0|com.dmmmsu.helpinghand|0|FCM-Notification:65162697|10349
10-02 16:08:11.831  2519  2519 D StatusBar: update app badge num: com.dmmmsu.helpinghand/,num=1,isAllowed=true,userId=0
10-02 16:08:11.832  1986  3145 I QuietUtils: type:5, flags:0, cpkg:android
10-02 16:08:11.832  1986  2654 W ActivityManager: Sending non-protected broadcast android.intent.action.APPLICATION_MESSAGE_UPDATE from system 2519:com.android.systemui/1000 pkg com.android.systemui. Callers=
10-02 16:08:11.833  2878  2878 I Launcher.ApplicationsMessage: onReceive true
10-02 16:08:11.834  2878  2878 I Launcher.ApplicationsMessage: update com.dmmmsu.helpinghand/ to 1
10-02 16:08:13.429  2878 14256 I TransmissionProvider: unbindService & quitSafely
10-02 16:08:15.257  2519  2720 D NetworkController.MobileSignalController(2): getDataNetTypeFromServiceState slotId=0  isUsingCarrierAggregation=false
10-02 16:08:15.257  2519  2720 D NetworkTypeUtils: getDataNetTypeFromServiceState:srcDataNetType = 15, destDataNetType 15
10-02 16:08:15.261  2519  2720 D MobileSignalController: updateDataType mSelectedDataTypeIcon[0]=2131231953, mSelectedDataActivityIndex=5
10-02 16:08:15.261  2519  2720 D TelephonyIcons: getSignalStrengthIcon: slot=0, inetCondition=1, level=3, roaming=false
10-02 16:08:15.261  2519  2720 D TelephonyIcons: getDataActivity, slot=0, activity=3
10-02 16:08:15.271  2519  2720 D TelephonyIcons: null signal icon name: drawable/stat_sys_signal_null
10-02 16:08:15.274  2519  2720 D TelephonyIcons: getDataTypeIcon sub=0
10-02 16:08:19.028  1986  2456 D CompatibilityInfo: mCompatibilityFlags - 0
10-02 16:08:19.028  1986  2456 D CompatibilityInfo: applicationDensity - 440
10-02 16:08:19.028  1986  2456 D CompatibilityInfo: applicationScale - 1.0
10-02 16:08:19.039 11860 11860 I BgTaskExecutorImpl: Starting PERIODIC background task CLEAR_DATA_DETECTOR.
10-02 16:08:19.828  3720  3720 I BatteryInfoReceiver: ACTION_BATTERY_CHANGED
10-02 16:08:19.828  1986  4589 V LocSvc_HIDL_Subscription_jni: battery_level_update
10-02 16:08:19.828  1986  4589 V LocSvc_HIDL_Subscription_jni: [battery_level_update][931] [HC] =>> [HS]
10-02 16:08:19.828   764   764 V LocSvc_HIDL_IzatSubscription: [batteryLevelUpdate][777] [HS] <<<<= [HC]
10-02 16:08:19.829  1986  4589 V LocSvc_HIDL_Subscription_jni: Exit Result 0
10-02 16:08:19.829  2519  2519 I MiuiChargeController: checkBatteryStatus: chargeType 11 status 2 plugged 2 isRapidCharge false isSuperCharge false isCarMode false mChargeDeviceType -1
10-02 16:08:19.829  2519  2519 D KeyguardUpdateMonitor: received broadcast android.intent.action.BATTERY_CHANGED
10-02 16:08:19.829  2519  2519 D KeyguardUpdateMonitor: handleBatteryUpdate
10-02 16:08:19.830  4190  4427 D PowerCheckerService: onBatteryChanged, mBatteryLevel = 47, status = 2, level = 47, plug = 2, scale = 100
10-02 16:08:19.944   764  2803 E IzatSvc_PassiveLocListener: Exiting with error onLocationChanged line 154 "1"
10-02 16:08:19.944   764  2803 V LocSvc_HIDL_IzatProvider: [onLocationChanged][72] [HS] =>>>> [HC]
10-02 16:08:19.944  1986  2414 V LocSvc_HIDL_IzatProvider_jni: [onLocationChanged][208] [HC] <<= [HS]
GnApollo commented 5 years ago

still not showing a heads up notification senior

GnApollo commented 5 years ago

I'm so much sorry senior for opening up this kind of issue. I think the problem was that I am so not knowledgeable enough in implementing this module.

the answer to my issue is to thoroughly read this https://developer.android.com/guide/topics/ui/notifiers/notifications#importance

and I found that in my app setting under the notification channel i created in need to allow the app to show an important notification at the top of the screen.

what the issue now is that it is not dynamically enabled. I don't know if it due to the type of phone/device.

muchas gracias señor @dusan-dragon @lbad9 @mikehardy :)

aprilmintacpineda commented 4 years ago

I am having this trouble, I used the @react-native-firebase/template, I can receive the notification when the app is in the foreground (.onMessage callback) and when the app is in the background (.setBackgroundMessageHandler) but when the app is killed (slide up from task list), the notification seems to be lost. I'm sending push notification using firebase console and also using firebase-admin, I'm looking for that priority option but I can't find it. Help please @samulon13