-
-
Notifications
You must be signed in to change notification settings - Fork 80
System.ArgumentException: Handle must be valid. Parameter name: type #152
Comments
I just magically started getting this error recently. i have two apps listening to the same firebase reference. when i call the setvalue() method i get this exception. |
Having this issue too. Mine happens when I try to access Xamarin.Essentials.Preferences through "ViewAppeared" lifecycle method in MvvmCross Viewmodel. Specifically when coming back from another activity. |
Im getting this issue randomly as well on with crosssecurestorage we are using Xamarin.Android |
I found this issue and even though I'm not using Essentials, I want to share how I stopped this from occurring: |
Bug Information
Version Number of Plugin: 3.1.1
Device Tested On: Sony Xperia XZ1 with Android 9.
Simulator Tested On: -
Version of VS: -
Version of Xamarin: app was built with MonoAndroid 8.1
Versions of other things you are using: -
Steps to reproduce the Behavior
It's random. Personally I wasn't able to reproduce it but I received a few crash reports. Looking at the stacktrace I believe it may relate to xamarin/Essentials#380
Expected Behavior
App doesn't crash.
Actual Behavior
App crashes:
Code snippet
Preferences.get_IsLoginInfoSaved
has the following code:_settingsInstance
is anISettings
instance.The text was updated successfully, but these errors were encountered: