JaneySprings / DotNet.Meteor

A VSCode extension that can run and debug .NET apps (Xamarin, MAUI, Avalonia)
https://marketplace.visualstudio.com/items?itemName=nromanov.dotnet-meteor
MIT License
269 stars 10 forks source link

MongoDB Realm not loading correctly when debugging with NET Meteor - only for Android #87

Closed sindrevr closed 6 months ago

sindrevr commented 6 months ago

Hi, There seems to be a bug when trying to debug Android emulator and Physical device when using Realm SDK in the project. Works fine with IOS/MAC Framework. The problem is when starting the app and initializing and currentuser is always equal null and therefore needs to login everytime after restarting/re-compiling the code.

This does not happen when using .NET Maui extension when debugging in VSCode. Sample app that does fail with Meteor and succeed with .NET Maui is the classic Realm Todo. https://github.com/mongodb/template-app-maui-todo

Any tip how to fix this?

JaneySprings commented 6 months ago

Hi, @sindrevr ! Can you try to disable this option in the VSCode settings?

https://github.com/JaneySprings/DotNet.Meteor/issues/58#issuecomment-1585600852

sindrevr commented 6 months ago

Hi @JaneySprings ! Thank you for your fast reply and great tip. Now it works as expected 😄