Toasts.Forms.Plugin
Toasts.Forms.Plugin copied to clipboard
Synchronous Notify() causes crash in release on iOS when tapped
When invoking Notify(callback, options) - the synchronous method - in an iOS app on the main thread, the app will crash when the user taps the notification. This happens only in the release build, the debug build behaves as expected. The async Notify(options) method works without problems in both debug and release builds.
When connecting the Xcode debugger to the running release build and then crash the app by tapping a notification, the debugger indicates that EXC_BAD_ACCESS occurs in System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.InvokeMoveNext() (InvokeMoveNext.cs:1089).
I have not tested this on Android as I was in a bit of a rush to fix the bug for a new release.