Getting following Error (But it is not always, but 1 out of 2 attempt to debug my application give this error):
[0:] System.TypeInitializationException: The type initializer for 'System.Text.Json.JsonSerializer' threw an exception. ---> System.MissingMethodException: Method not found: int System.Text.Encodings.Web.TextEncoder.FindFirstCharacterToEncodeUtf8(System.ReadOnlySpan1)
at System.Text.Json.JsonEncodedText.EncodeHelper (System.ReadOnlySpan1[T] utf8Value, System.Text.Encodings.Web.JavaScriptEncoder encoder) [0x00000] in <cb68364b029e41c3bf425990b94c94d9>:0 at System.Text.Json.JsonEncodedText.TranscodeAndEncode (System.ReadOnlySpan1[T] value, System.Text.Encodings.Web.JavaScriptEncoder encoder) [0x00033] in :0
at System.Text.Json.JsonEncodedText.Encode (System.ReadOnlySpan1[T] value, System.Text.Encodings.Web.JavaScriptEncoder encoder) [0x00014] in <cb68364b029e41c3bf425990b94c94d9>:0 at System.Text.Json.JsonEncodedText.Encode (System.String value, System.Text.Encodings.Web.JavaScriptEncoder encoder) [0x00014] in <cb68364b029e41c3bf425990b94c94d9>:0 at System.Text.Json.JsonSerializer..cctor () [0x00042] in <cb68364b029e41c3bf425990b94c94d9>:0 --- End of inner exception stack trace --- at Plugin.LocalNotification.NotificationCenter.GetRequestSerialize (Plugin.LocalNotification.NotificationRequest request) [0x0003e] in <763ab1a1f1b64389a6f1b291e8872c5b>:0 at Plugin.LocalNotification.Platform.iOS.NotificationServiceImpl.Show (Plugin.LocalNotification.NotificationRequest request) [0x000fe] in <763ab1a1f1b64389a6f1b291e8872c5b>:0
I found some topic that other libraries get this error, but I always get error on this Plugin for iOS, on exact those line. I try to include the Nuget package of System.Text.Encoding.Web that should add this function in code, but it is still not working and generating error. I see you use JsonSerializer Maybe you can include that library default (as requirement) Fix it ?
Getting following Error (But it is not always, but 1 out of 2 attempt to debug my application give this error):
[0:] System.TypeInitializationException: The type initializer for 'System.Text.Json.JsonSerializer' threw an exception. ---> System.MissingMethodException: Method not found: int System.Text.Encodings.Web.TextEncoder.FindFirstCharacterToEncodeUtf8(System.ReadOnlySpan1)at System.Text.Json.JsonEncodedText.EncodeHelper (System.ReadOnlySpan
1[T] utf8Value, System.Text.Encodings.Web.JavaScriptEncoder encoder) [0x00000] in <cb68364b029e41c3bf425990b94c94d9>:0 at System.Text.Json.JsonEncodedText.TranscodeAndEncode (System.ReadOnlySpan1[T] value, System.Text.Encodings.Web.JavaScriptEncoder encoder) [0x00033] in :0at System.Text.Json.JsonEncodedText.Encode (System.ReadOnlySpan
1[T] value, System.Text.Encodings.Web.JavaScriptEncoder encoder) [0x00014] in <cb68364b029e41c3bf425990b94c94d9>:0 at System.Text.Json.JsonEncodedText.Encode (System.String value, System.Text.Encodings.Web.JavaScriptEncoder encoder) [0x00014] in <cb68364b029e41c3bf425990b94c94d9>:0 at System.Text.Json.JsonSerializer..cctor () [0x00042] in <cb68364b029e41c3bf425990b94c94d9>:0 --- End of inner exception stack trace --- at Plugin.LocalNotification.NotificationCenter.GetRequestSerialize (Plugin.LocalNotification.NotificationRequest request) [0x0003e] in <763ab1a1f1b64389a6f1b291e8872c5b>:0 at Plugin.LocalNotification.Platform.iOS.NotificationServiceImpl.Show (Plugin.LocalNotification.NotificationRequest request) [0x000fe] in <763ab1a1f1b64389a6f1b291e8872c5b>:0I found some topic that other libraries get this error, but I always get error on this Plugin for iOS, on exact those line. I try to include the Nuget package of
System.Text.Encoding.Webthat should add this function in code, but it is still not working and generating error. I see you use JsonSerializer Maybe you can include that library default (as requirement) Fix it ?