You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, we lose the GET_NOTIFICATION_CHANNELS_ERROR_CODE for the exception, but due to the issue seen in the screenshot above, it's anyway never used.
I haven't check whether there are any other occurences in the code base. Anyway, passing stacktraces to method channels is not safe, as they can't be serialized.
The text was updated successfully, but these errors were encountered:
Describe the bug
We see the following issue in production:
![Screenshot 2023-09-08 at 08 59 09](https://private-user-images.githubusercontent.com/1270149/266527973-c0ba1cd7-a965-4a02-87ee-58ac04d4ea74.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzOTM3OTcsIm5iZiI6MTczOTM5MzQ5NywicGF0aCI6Ii8xMjcwMTQ5LzI2NjUyNzk3My1jMGJhMWNkNy1hOTY1LTRhMDItODdlZS01OGFjMDRkNGVhNzQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMjA1MTM3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NDViMjNmYjQ4YzY5ZmY3OTkzZjI1MGE5MmUzMWViZjEyNTBhZmMzZjI4ZDY2NzdmYWVlMmMxM2RjMTg4NGYzZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.744D5x0_TK_mh1lbfXUSGY8PnUx8Vf02YDzwH4tkKEo)
To Reproduce
Unfortunately, I don't know how to reproduce this issue.
Expected behavior
The actual real stacktrace should be shown
Sample code to reproduce the problem
Again, unfortunately, I don't know how to solve this problem.
Fix
Fortunately, I know how to fix the issue with the wrongly supported stacktraces.
The following code
https://github.com/MaikuB/flutter_local_notifications/blob/4d8aa14bb6ee12a8c3fa5a29d1eb82a5d57a8fe7/flutter_local_notifications/android/src/main/java/com/dexterous/flutterlocalnotifications/FlutterLocalNotificationsPlugin.java#L2002C1-L2016C4
should be changed to
This is documented at https://api.flutter.dev/flutter/services/PlatformException/stacktrace.html
Unfortunately, we lose the
GET_NOTIFICATION_CHANNELS_ERROR_CODE
for the exception, but due to the issue seen in the screenshot above, it's anyway never used.I haven't check whether there are any other occurences in the code base. Anyway, passing stacktraces to method channels is not safe, as they can't be serialized.
The text was updated successfully, but these errors were encountered: