Open
Description
I have noticed that no matter what, even on a fresh app install, if you call `ParseUser.getCurrentUser().saveInBackground()' on a UI Thread the app will hang. The example I used was calling the function after updating a user value after toggling a Switch component:
fun setAccountPrivacy(on: Boolean) {
ParseUser.getCurrentUser().put("privateAccount", on)
ParseUser.getCurrentUser().saveInBackground()
}
I've written a basic custom activity to prove my hypothesis. Starting an Activity of this type will cause the app to hang and leave a blank screen as can be seen by simulator screenshot attached. Activity is as follows:
import androidx.appcompat.app.AppCompatActivity
import com.parse.ParseUser
open class CustomActivity : AppCompatActivity() {
override fun onResume() {
super.onResume()
//Save Parse User
ParseUser.getCurrentUser().saveInBackground()
}
}
Metadata
Metadata
Assignees
Labels
No labels