Android crash when receive notification from Firebase console with sound
See original GitHub issueHi,
I am getting this crash when send a notification with parameters and sound from the firebase console.
[AndroidRuntime] Parameter name: length
[AndroidRuntime] at System.String.Substring (System.Int32 startIndex, System.Int32 length) [0x0004a] in <85f7b553f08f43a8a65ed84e5bc4a8ce>:0
[AndroidRuntime] at Plugin.PushNotification.DefaultPushNotificationHandler.OnReceived (System.Collections.Generic.IDictionary`2[TKey,TValue] parameters) [0x00201] in <7bfb079c05ee4ace8e60f5228d71d2db>:0
[AndroidRuntime] at Plugin.PushNotification.PNMessagingService.OnMessageReceived (Firebase.Messaging.RemoteMessage message) [0x001e1] in <7bfb079c05ee4ace8e60f5228d71d2db>:0
[AndroidRuntime] at Firebase.Messaging.FirebaseMessagingService.n_OnMessageReceived_Lcom_google_firebase_messaging_RemoteMessage_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_message) [0x00011] in <9d0d1f3bc0ed4aa895271e840e47dc1a>:0
[AndroidRuntime] at (wrapper dynamic-method) System.Object:5fe8cbfb-18dd-4ec9-b81b-d93389c12952 (intptr,intptr,intptr)
[AndroidRuntime] at md573c9264e488c62a04468d109fbc8adb8.PNMessagingService.n_onMessageReceived(Native Method)
[AndroidRuntime] at md573c9264e488c62a04468d109fbc8adb8.PNMessagingService.onMessageReceived(PNMessagingService.java:29)
[AndroidRuntime] at com.google.firebase.messaging.FirebaseMessagingService.zzl(Unknown Source)
[AndroidRuntime] at com.google.firebase.messaging.FirebaseMessagingService.zzJ(Unknown Source)
[AndroidRuntime] at com.google.firebase.messaging.FirebaseMessagingService.handleIntent(Unknown Source)
[AndroidRuntime] at com.google.firebase.iid.zzb$1.run(Unknown Source)
[AndroidRuntime] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
[AndroidRuntime] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
[AndroidRuntime] at java.lang.Thread.run(Thread.java:761)
Regards,
Andrés R.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
App crashing when trying to send notification to a single ...
Try Debugging your onMessageReceived(), you must be getting remoteMessage.getNotification() = null if you are not sending a notification ...
Read more >App Crashes when receiving new FCM notification #852
Any news on this issue, my app is still crashing when receiving a FCM notification. I'm using only the FCM config. 7
Read more >Receive messages in an Android app - Firebase - Google
This occurs when there are too many messages (>100) pending for your app on a particular device at the time it connects or...
Read more >Crashlytics App Crash & Stability Reporting - Firebase - Google
Firebase Crashlytics, a real time crash reporting tool, helps you prioritize and fix your most pervasive app crashes based on the impact on...
Read more >Android Firebase Messaging Changes for Android 12 to ...
Android Firebase Messaging Changes for Android 12 to prevent app crashes when receiving a push notifications.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Should be fixed on latest release
Is it about com.google.firebase:firebase-messaging:17.3.0 Can you confirm latest release?