Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.ArgumentException: The key already existed in the dictionary. #174

Open
anatolii-bohdanov opened this issue Apr 14, 2020 · 1 comment

Comments

@anatolii-bohdanov
Copy link

anatolii-bohdanov commented Apr 14, 2020

Good day!

Version: 3.3.2
Exception: System.ArgumentException: 'The key already existed in the dictionary.' from SnackbarNotification.
Stack trace:
IDictionary<TKey,TValue>.Add (TKey key, TValue value) SnackbarNotification.ToastClosed (System.String id, Plugin.Toasts.NotificationResult result) SnackbarNotification.<Notify>b__5_2 (System.String toastId, Plugin.Toasts.NotificationResult result) ToastCallback.OnDismissed (Android.Support.Design.Widget.Snackbar snackbar, System.Int32 evt) Snackbar+Callback.n_OnDismissed_Landroid_support_design_widget_Snackbar_I (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_transientBottomBar, System.Int32 e)

We call a Notify method from ToastNotification class in several threads. I think that we catch a situation when we have the same id on line

and after that we call CancelAllDelivered method.

@polarSTICK
Copy link

Having the same issue. Did you find any workaround?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants