.NET MAUI & Storage, Part 2 - Store settings

preview_player
Показать описание
Do you need to save settings locally? This video shows how to do that in .NET MAUI.
Рекомендации по теме
Комментарии
Автор

I don't see where you call your LoadSettings method ?

KenzoArts
Автор

Look at time 1:28 in the video. The 'S' in "SendNotifications" is underlined. Also, the 'S' in "Save". The error reported on my machine is No data context found for Binding. Which seems right. Because when I click the 'Save' button, the Save Method does not get called. I don't know why yours works and mine doesn't I checked everything 10 times, I have everything precisely as your tutorial. Also, I believe there is a required step from Part 1, Secured Storage. When you make entries to the MauiProgram.cs file. I believe the builder must be set for Part 2. But I skipped secure storage Part 1, and missed that part. Part 2 would be better if you describe that necessary step.

integrityintellectualprope
Автор

Hi I noticed that maui secure storage returns null when accessed multiple times or locked the phone or in app background. Do you ever faced it?

BanuRega-zi
Автор

I have tried using the same wrapper, well I named it differently I think but the logic is the same, it caused my app to crash immediately on launch on android, and even when debugging, it doesn't show the root, it just breaks out and says "emulator return code xx..), reverting to use Preferences.Default directly fixed this issue...
Any idea why?

dusrdev