Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android crash when receive notification from Firebase console with sound

See original GitHub issue


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(
[AndroidRuntime] 	at Source)
[AndroidRuntime] 	at Source)
[AndroidRuntime] 	at Source)
[AndroidRuntime] 	at$ Source)
[AndroidRuntime] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(
[AndroidRuntime] 	at java.util.concurrent.ThreadPoolExecutor$
[AndroidRuntime] 	at


Andrés R.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

rdelrosariocommented, Nov 26, 2017

Should be fixed on latest release

alsraonanicommented, Sep 28, 2018

Is it about Can you confirm latest release?

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found