Open sasukevita opened 3 years ago
Could you please attach a small project to reproduce the issue
@sasukevita as mentioned a reproduction project would be super helpful. Thanks!
What I found from the code, that we are not able to get the XF renderer for the VisualElement. If you are not calling the method from XF, I think it won't work.
You call DisplaySnackBarAsync from a page that is not the MainPage. You should do :
App.Current.MainPage.DisplaySnackBarAsync( )
I had the same problem and this fixed it
Description
DisplayToastAsync() is worked, after closing app and reopen app from float service button, DisplayToastAsync() is shown but app crash
Toast.MakeText() still worked fine even after reopen app from float service button
Steps to Reproduce
Error Debug:
Expected Behavior
no crash
Actual Behavior
Snackbar Toast is shown but then app crash
Basic Information
Workaround