I initiate Realm and App globally through the Application class:
Then I check if a user is logged in.
If there is no user logged in the application sends you to the login screen so you can log in. After logging in, Mongodb Realm functions are called but after a while, when calling a function, it throws the Invalid Session exception.
To be able to call a function again I have to uninstall the application and log in again.
At the moment I’m not using a synchronized Realm, I just interact with the functions through the App.
Why is this exception thrown? Doesn’t the SDK update the user’s session automatically? Does it have something to do with the fact that he doesn’t use a synchronised Realm?