React-native-firebase: Unable to receive notification when the app is closed / killed in android. react native firebase push notifications

Created on 26 Sep 2019  Â·  30Comments  Â·  Source: invertase/react-native-firebase

android Manifest.xml:

package="com.point">

<uses-permission android:name="android.permission.INTERNET" />
  <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />




<application
  android:name=".MainApplication"
  android:label="@string/app_name"
  android:icon="@mipmap/ic_launcher"
  android:roundIcon="@mipmap/ic_launcher_round"
  android:allowBackup="false"
  android:theme="@style/AppTheme">
  <activity
    android:name=".MainActivity"
    android:label="@string/app_name"
    android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
    android:windowSoftInputMode="adjustResize">
    <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>

android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="@drawable/icon_liked" />

android:name="com.google.firebase.messaging.default_notification_color"
android:resource="@color/notificationColor" />

        <meta-data
        android:name="com.google.android.geo.API_KEY"
        android:value="AIzaSyBbxQreu_oo1VGL8H3UMwWdrjY4izmoldo"/>

<meta-data
  android:name="com.google.firebase.messaging.default_notification_channel_id"
  android:value="@string/default_notification_channel_id"/>

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

</application>

and my listeners are as follows:

async checkPermission() {
const enabled = await firebase.messaging().hasPermission();
if (enabled) {
this.getToken();
} else {
this.requestPermission();
}
}

async getToken() {
    let fcmToken = await AsyncStorage.getItem('fcmToken');
    if (!fcmToken) {
        fcmToken = await firebase.messaging().getToken();
        if (fcmToken) {
            await AsyncStorage.setItem('fcmToken', fcmToken);
        }
    }
    console.log('fcmToken:', fcmToken);
    this.setState({ mytoken: fcmToken });
}

async requestPermission() {
    try {
        await firebase.messaging().requestPermission();
        this.getToken();
    } catch (error) {
        console.log('permission rejected');
    }
}

async createNotificationListeners() {
    /*
    * Triggered when a particular notification has been received in foreground
    * */
    this.notificationListener = firebase.notifications().onNotification((notification) => {
        const { title, body } = notification;
        console.log('onNotification:');

        const localNotification = new firebase.notifications.Notification({
            sound: 'sampleaudio',
            show_in_foreground: true,
        })
            .setSound('sampleaudio.wav')
            .setNotificationId(notification.notificationId)
            .setTitle(notification.title)
            .setBody(notification.body)
            .android.setChannelId('fcm_FirebaseNotifiction_default_channel') // e.g. the id you chose above
            .android.setSmallIcon('@drawable/icon_liked') // create this icon in Android Studio
            .android.setColor('#000000') // you can set a color here
            .android.setPriority(firebase.notifications.Android.Priority.High);

        firebase.notifications()
            .displayNotification(localNotification)
            .catch(err => console.error(err));
    });

    const channel = new firebase.notifications.Android.Channel('fcm_FirebaseNotifiction_default_channel', 'Demo app name', firebase.notifications.Android.Importance.High)
        .setDescription('Demo app description')
        .setSound('sampleaudio.wav');
    firebase.notifications().android.createChannel(channel);

    /*
    * If your app is in background, you can listen for when a notification is clicked / tapped / opened as follows:
    * */
    this.notificationOpenedListener = firebase.notifications().onNotificationOpened((notificationOpen) => {
        const { title, body } = notificationOpen.notification;
        console.log('onNotificationOpened:');
        //  Alert.alert(title, body)
    });

    /*
    * If your app is closed, you can check if it was opened by a notification being clicked / tapped / opened as follows:
    * */

/* apna
const notificationOpen = await firebase.notifications().getInitialNotification();
if (notificationOpen) {
const { title, body } = notificationOpen.notification;
console.log('getInitialNotification:');
// Alert.alert(title, body)
}
apna */

    this.my = firebase.notifications().getInitialNotification()
    .then((notificationOpen) => {
        console.log("App is killed");          
    });
            /*
    * Triggered for data only payload in foreground
    * */
    this.messageListener = firebase.messaging().onMessage((message) => {
        //process data message
        console.log("JSON.stringify:", JSON.stringify(message));
    });
}
Stale

Most helpful comment

I just had a similar issue. On android 7 it was working as expected, on android 8+ it was working except the case when the app was killed. My issue was that I did not set priority to HIGH when sending push notification from the server... Check if you are setting the priority...

@samulon13 also try to open android studio and see if you can see some logs in the logcat for your app process...

All 30 comments

@Ibad9 could you please fill out the PR template. Without that info, it is almost impossible to help you.

@Ibad9 could you please fill out the PR template. Without that info, it is almost impossible to help you.

done.. let me know if u want to see something more.

i will really appreciate if someone would discuss briefly how to implement rnfirebase notification showing a pop up notification header if device is on background or killed. when im sending notifcation to my device using the firebase messaging console. the notification in my app in only showing in the system tray.

in my app.js

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);

}

index,js

import bgMessaging from './src/backgroundNotif';
....
AppRegistry.registerHeadlessTask('RNFirebaseBackgroundMessage', () => bgMessaging);

backgroundNotif.js

import firebase from 'react-native-firebase';

export default async (message) => {
// handle your message
const notification = new firebase.notifications.Notification()
.setNotificationId(message.messageId)
.setTitle(message.data.title)
.setBody(message.data.body)
.android.setChannelId('test-channel')
.android.setSmallIcon('ic_launcher')
.android.setPriority(firebase.notifications.Android.Priority.Max)
.setSound('default');

await firebase.notifications().displayNotification(notification);
console.log({message})
return Promise.resolve();
}

AndroidManifest.xml

package="com.dmmmsu.helpinghand">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.VIBRATE" />
<application
  android:name=".MainApplication"
  android:label="@string/app_name"
  android:icon="@mipmap/ic_launcher"
  android:roundIcon="@mipmap/ic_launcher_round"
  android:allowBackup="false"
  android:theme="@style/AppTheme">
  <activity
    android:name=".MainActivity"
    android:label="@string/app_name"
    android:launchMode="singleTop"
    android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
    android:windowSoftInputMode="adjustResize">
    <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" />
<activity
    android:name="com.facebook.CustomTabActivity"
    android:exported="true">
    <intent-filter>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <data android:scheme="@string/fb_login_protocol_scheme" />
    </intent-filter>
</activity>

android:name="com.google.firebase.messaging.default_notification_channel_id"
android:value="@string/default_notification_channel_id"/>

  <receiver android:name="io.invertase.firebase.notifications.RNFirebaseNotificationReceiver"/>




















thank you in andvance :)

i will really appreciate if someone would discuss briefly how to implement rnfirebase notification showing a pop up notification header if device is on background or killed. when im sending notifcation to my device using the firebase messaging console. the notification in my app in only showing in the system tray.

in my app.js

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);

}

index,js

import bgMessaging from './src/backgroundNotif';
....
AppRegistry.registerHeadlessTask('RNFirebaseBackgroundMessage', () => bgMessaging);

backgroundNotif.js

import firebase from 'react-native-firebase';

export default async (message) => {
// handle your message
const notification = new firebase.notifications.Notification()
.setNotificationId(message.messageId)
.setTitle(message.data.title)
.setBody(message.data.body)
.android.setChannelId('test-channel')
.android.setSmallIcon('ic_launcher')
.android.setPriority(firebase.notifications.Android.Priority.Max)
.setSound('default');

await firebase.notifications().displayNotification(notification);
console.log({message})
return Promise.resolve();
}

AndroidManifest.xml

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.VIBRATE" />
<application
  android:name=".MainApplication"
  android:label="@string/app_name"
  android:icon="@mipmap/ic_launcher"
  android:roundIcon="@mipmap/ic_launcher_round"
  android:allowBackup="false"
  android:theme="@style/AppTheme">
  <activity
    android:name=".MainActivity"
    android:label="@string/app_name"
    android:launchMode="singleTop"
    android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
    android:windowSoftInputMode="adjustResize">
    <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" />
<activity
    android:name="com.facebook.CustomTabActivity"
    android:exported="true">
    <intent-filter>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <data android:scheme="@string/fb_login_protocol_scheme" />
    </intent-filter>
</activity>
  <receiver android:name="io.invertase.firebase.notifications.RNFirebaseNotificationReceiver"/>

thank you in andvance :)

just use tag "data" instead of "notification". The popup will appear

notifications

thank you for your response @Ibad9 .

can you be more specific of the changes that i will going to make ?

notifications

thank you for your response @Ibad9 .

can you be more specific of the changes that i will going to make ?

please attach your json response that you are sending from server..

notifications

thank you for your response @Ibad9 .
can you be more specific of the changes that i will going to make ?

please attach your json response that you are sending from server..

i open my Remote JS debugger.
i used the firebase console to send message but i didnt see any reponse from my app in the debugger.

in my homescreen i added componentDidMount {
this.notificationListener = firebase.notifications().onNotification((notification: Notification) => {
console.log(notification);
});
}

and this is what i recieved.

Notification {_body: "asdasd", _data: {…}, _notificationId: "0:1569924549735974%ab1a951aab1a951a", _sound: undefined, _subtitle: undefined, …}
_android: AndroidNotification {_notification: Notification, _actions: Array(0), _autoCancel: undefined, _badgeIconType: undefined, _bigPicture: undefined, …}
_body: "asdasd"
_data: {}
_ios: IOSNotification {_notification: Notification, _attachments: Array(0)}
_notificationId: "0:1569924549735974%ab1a951aab1a951a"
_sound: undefined
_subtitle: undefined
_title: "asdasd"
android: (...)
body: (...)
data: (...)
ios: (...)
notificationId: (...)
sound: (...)
subtitle: (...)
title: (...)
__proto__: Object

use pushtry.com.

I just had a similar issue. On android 7 it was working as expected, on android 8+ it was working except the case when the app was killed. My issue was that I did not set priority to HIGH when sending push notification from the server... Check if you are setting the priority...

@samulon13 also try to open android studio and see if you can see some logs in the logcat for your app process...

thank you for your reponse @dusan-dragon @Ibad9 .

im trying the push try now.

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

im still getting the same log as above and when in background it is still not showing the notification its just showing in the system tray.

log cat of my phone recieving the notification

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

i also change my backgroundNotif.js to

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-channel');
  console.log(notification);
  await firebase.notifications().displayNotification(notification);

  return Promise.resolve();
}

sadly the notification showing my system tray is the notif i send in the pushtry. "Working good" , "Try" not the one i set above.

'My notification title'
'My notification body'

@samulon13 So what does a class not found exception about com.amazon.device.messaging.ADMMessageHandlerBase have to do with react-native-firebase?

thank you for your reponse @dusan-dragon @Ibad9 .

im trying the push try now.

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

im still getting the same log as above and when in background it is still not showing the notification its just showing in the system tray.

after your fcm token.. see there is a tag notification , just replace it with data

thank you for your reponse @dusan-dragon @Ibad9 .
im trying the push try now.
{"to":"ez2z4X9fTVo:APA91bH-aESwnXcfC3osA95IhLNFfVDbZpj-pdS9o8rpfrkfOhCcfOLIQXw8QnZlA7yKmmI_jJHthP_R4og_MREI_JG1xci7o8GrMlvVBW0olSMdXX9MIEQxXk--CdMxnPKb-4Gjn6sX","notification":{"title":"Working Good","body":"sadasd]"},"priority":"high"}
im still getting the same log as above and when in background it is still not showing the notification its just showing in the system tray.

after your fcm token.. see there is a tag notification , just replace it with data

with the pushtry :

{"to":"cKhoOFKfOuQ:APA91bHMVKbLX7X_B9JTmm7_vHJtSZECPIyYRhKZF14PoV-wxm1ETXSFwCxjohSQzyR5yTHlk2Dhgs-XTsxS1FTfgKSYJYnkNlIznAl_-pL1J3Ey4bwl1HQKsSCN9xbf7F-4mNjz7dJb","data":{"title":"Working Good","body":"testing from push try"},"priority":"high"}

i got no response.

but if i add notification and data,

{"to":"cKhoOFKfOuQ:APA91bHMVKbLX7X_B9JTmm7_vHJtSZECPIyYRhKZF14PoV-wxm1ETXSFwCxjohSQzyR5yTHlk2Dhgs-XTsxS1FTfgKSYJYnkNlIznAl_-pL1J3Ey4bwl1HQKsSCN9xbf7F-4mNjz7dJb","notification":{"title":"Working Good","body":"testing from push try"},"data":{"title":"Working Good","body":"testing from push try"},"priority":"high"}

i got this.

Notification {_body: "testing from push try", _data: {…}, _notificationId: "0:1569938317188486%ab1a951aab1a951a", _sound: undefined, _subtitle: undefined, …}
_android: AndroidNotification {_notification: Notification, _actions: Array(0), _autoCancel: undefined, _badgeIconType: undefined, _bigPicture: undefined, …}
_body: "testing from push try"
_data: {title: "Working Good", body: "testing from push try"}
_ios: IOSNotification {_notification: Notification, _attachments: Array(0)}
_notificationId: "0:1569938317188486%ab1a951aab1a951a"
_sound: undefined
_subtitle: undefined
_title: "Working Good"
android: (...)
body: (...)
data: (...)
ios: (...)
notificationId: (...)
sound: (...)
subtitle: (...)
title: (...)
__proto__: Object

@samulon13 So what does a class not found exception about com.amazon.device.messaging.ADMMessageHandlerBase have to do with react-native-firebase?

im sorry senior but i dont know :(
i just show the log cat of my device right after recieving the notification.

@samulon13 it seems like you are using also something else for push notifications so maybe it is clashing somehow. Is it a private or public project can you share repo?

Also not sure if this is the best place to debug that issue. There is high chance that this is just misconfiguration and not a real bug as @mikehardy pointed out in other channels it it very easy to get it wrong... :/

Yeah - with deep empathy I just have to admit that debugging messaging is just really hard. I wish I could help more and quickly but it never works when I try, so I avoid it. For what it's worth it looks like you might be close but my take from that ClassNotFoundException is that you have another project clashing with react-native-firebase and it's blocking everything.

How sad it is. this is a public project senior. my first app using RN and my capstone project in school.
bear with me. Actually this is the last module i need to finish but if notification will still wont work until weekend, i guess i need to revise my project again .

i installed react-native-fbsdk because im using the facebook log in. i dont know if this has something to do with the notification.

i also using the firebase auth and firebase firestore using react-native-firebase. it works fine.

this is my package.json

{
  "name": "Extigo",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "react-native start",
    "test": "jest",
    "lint": "eslint .",
    "android": "react-native run-android"
  },
  "dependencies": {
    "@react-native-community/async-storage": "^1.6.2",
    "@react-native-community/geolocation": "^2.0.2",
    "firebase-admin": "^8.4.0",
    "javascript-time-ago": "^2.0.1",
    "lottie-react-native": "^3.1.1",
    "moment": "^2.24.0",
    "native-base": "^2.13.5",
    "react": "16.8.6",
    "react-native": "0.60.5",
    "react-native-camera": "^3.6.0",
    "react-native-extra-dimensions-android": "^1.2.5",
    "react-native-fbsdk": "^1.0.2",
    "react-native-firebase": "^5.5.6",
    "react-native-gesture-handler": "^1.4.1",
    "react-native-launch-navigator": "^1.0.6",
    "react-native-maps": "0.25.0",
    "react-native-modal": "^11.3.1",
    "react-native-modal-datetime-picker": "^7.5.0",
    "react-native-paper": "^2.16.0",
    "react-native-qrcode-scanner": "^1.2.3",
    "react-native-qrcode-scanner-view": "^2.0.0",
    "react-native-qrcode-svg": "^5.2.0",
    "react-native-ratings": "^6.5.0",
    "react-native-reanimated": "^1.2.0",
    "react-native-svg": "^9.9.4",
    "react-navigation": "^3.12.0",
    "react-navigation-drawer": "^2.0.0",
    "react-navigation-material-bottom-tabs": "^2.1.2",
    "react-redux": "^7.1.1",
    "redux": "^4.0.4",
    "redux-thunk": "^2.3.0",
    "uuid": "^3.3.3"
  },
  "devDependencies": {
    "@babel/core": "^7.5.5",
    "@babel/runtime": "^7.5.5",
    "@react-native-community/eslint-config": "^0.0.5",
    "babel-jest": "^24.9.0",
    "eslint": "^6.2.2",
    "hermes-engine": "0.1.0",
    "jest": "^24.9.0",
    "metro-react-native-babel-preset": "^0.56.0",
    "react-test-renderer": "16.8.6"
  },
  "jest": {
    "preset": "react-native"
  }
}

Ok - so a couple thoughts - if it's a public project and you could load it into github (or anywhere) we might have a shot at browsing through and seeing something obvious.

Also, you might try opening a fresh issue following the template, because I have a hunch about your gradle files + MainApplication. I wonder if you are using multidex correctly and that's causing the ClassNotFoundException and blowing everything up. These are the tweaks you make to a project to enable multidex - each is vital when using firestore https://github.com/mikehardy/rnfbdemo/blob/master/make-demo.sh#L136

Finally I'd be curious about the AndroidManifest to make sure that the listeners and services etc were configured correctly. All of that would be in the template if you opened a new issue and filled it all out

Ok - so a couple thoughts - if it's a public project and you could load it into github (or anywhere) we might have a shot at browsing through and seeing something obvious.

Also, you might try opening a fresh issue following the template, because I have a hunch about your gradle files + MainApplication. I wonder if you are using multidex correctly and that's causing the ClassNotFoundException and blowing everything up. These are the tweaks you make to a project to enable multidex - each is vital when using firestore https://github.com/mikehardy/rnfbdemo/blob/master/make-demo.sh#L136

Finally I'd be curious about the AndroidManifest to make sure that the listeners and services etc were configured correctly. All of that would be in the template if you opened a new issue and filled it all out

si senior. i will be doing that later on after my exam. thank you.

Kindly send me your email.

Sent from my iPhone

On 02-Oct-2019, at 7:14 AM, samulon13 notifications@github.com wrote:

Ok - so a couple thoughts - if it's a public project and you could load it into github (or anywhere) we might have a shot at browsing through and seeing something obvious.

Also, you might try opening a fresh issue following the template, because I have a hunch about your gradle files + MainApplication. I wonder if you are using multidex correctly and that's causing the ClassNotFoundException and blowing everything up. These are the tweaks you make to a project to enable multidex - each is vital when using firestore https://github.com/mikehardy/rnfbdemo/blob/master/make-demo.sh#L136

Finally I'd be curious about the AndroidManifest to make sure that the listeners and services etc were configured correctly. All of that would be in the template if you opened a new issue and filled it all out

si senior. i will be doing that later on after my exam. thank you.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Kindly send me your email.
…
Sent from my iPhone
On 02-Oct-2019, at 7:14 AM, samulon13 @.*> wrote: Ok - so a couple thoughts - if it's a public project and you could load it into github (or anywhere) we might have a shot at browsing through and seeing something obvious. Also, you might try opening a fresh issue following the template, because I have a hunch about your gradle files + MainApplication. I wonder if you are using multidex correctly and that's causing the ClassNotFoundException and blowing everything up. These are the tweaks you make to a project to enable multidex - each is vital when using firestore https://github.com/mikehardy/rnfbdemo/blob/master/make-demo.sh#L136 Finally I'd be curious about the AndroidManifest to make sure that the listeners and services etc were configured correctly. All of that would be in the template if you opened a new issue and filled it all out si senior. i will be doing that later on after my exam. thank you. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

this is my email senior [email protected]

Same problem from my side.
i am also not getting any response(payload) while application. In background/killed state
i am using this :-

import firebase from "react-native-firebase";
import {
Notification,
NotificationOpen,
RemoteMessage,
Firebase
} from "react-native-firebase";
firebase
.notifications()
.getInitialNotification()
.then((notificationOpen: NotificationOpen) => {
if (notificationOpen) {
alert("get data testing done")
}
});

also i am trying that 👎 but did't get any solution

firebase.messaging().onMessage((message: RemoteMessage) => {
// Process your message as required
console.log("Notification open App closed in open " + message);
});

If is there any one who can resolved this issues please update.

@lovekothari123 this is really hard to debug like that. It is most probably just misconfiguration on your side. If you could share that project on github you would have a bigger chance that somebody will take a look at it.

you can see my post here https://github.com/invertase/react-native-firebase/issues/2670#issue-501316598 @lovekothari123 .

you can also see in your phone if you have actually created notification channel. under its application setting.

Hello 👋, to help manage issues we automatically close stale issues.
This issue has been automatically marked as stale because it has not had activity for quite some time. Has this issue been fixed, or does it still require the community's attention?

This issue will be closed in 15 days 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

Related issues

callmejm picture callmejm  Â·  3Comments

n-scope picture n-scope  Â·  3Comments

NordlingDev picture NordlingDev  Â·  3Comments

rtman picture rtman  Â·  3Comments

joecaraccio picture joecaraccio  Â·  3Comments