Closed steffos closed 1 year ago
Problem solved. It was all due to a MtouchExtraArgs in the project file that we had added because Maui initially had some problems with push notification and this was a temporary fix:
<MtouchExtraArgs>--optimize:-static-block-to-delegate-lookup</MtouchExtraArgs>
Once removed everything worked as expected :)
We are using the plugin in a Maui app but lately have had problems with crashes. Crashes only occur when the linker has been set to 'Sdk Assemblies Only'. Everything seems to work when no linking is taking place.
When app is in foreground and a notification is received it crashes right away. The XCode Device Console logger outputs:
When app is in background and a notification is tapped the following is outputted in the console logger:
We have tried to explicitly tell the linker to keep Plugin.Firebase but the same crashes still occur.
Anyone have a clue as to why this is happening to us? Could UserNotification stuff be removed by the linker from the Microsoft.iOS assembly all of a sudden?