Closed
Description
Issue when upgrading to Parse SDK 4.0
After upgrading to Parse SDK 4.0, I've run into a few issues due to changes in the API. Here’s what I’ve encountered:
-
user.Username
is no longer accessible- In previous versions, I was able to access the
Username
field directly withuser.Username
, but in version 4.0, that field seems to be missing. The following code no longer works:var user = ParseClient.Instance.GetCurrentUser(); if (user.Username == "Test123") { // logic }
- In previous versions, I was able to access the
-
user.GetRelation<ParseObject>("SomeClass")
is no longer available- The method
GetRelation<ParseObject>("SomeClass")
no longer works. I'm unsure how to handle relations in version 4.0 since it seems like this method was changed or removed. Here’s the code that no longer functions:var someClassRelation = user.GetRelation<ParseObject>("SomeClass");
- The method
-
await user.SaveAsync()
is no longer working- The method
SaveAsync()
is no longer available onParseUser
objects directly. The following code no longer works:await user.SaveAsync();
- The method
Environment
- Parse SDK Version: 4.0
- Platform: .NET 9.0 MAUI, iOS/Android (or specify your platform)
Any guidance or clarification on these issues would be greatly appreciated! Thanks in advance. Maybe @YBTopaz8 can help? Thanks!