swift - Unable to Update User: UserCannotBeAlteredWithoutSessionError -
greetings parse neophyte:
task: update current user's attributes (in parse's user table).
problem: received 'usercannotbealteredwithoutsessionerror' error.
here's code:
func updateparseuser(newuser:user, sender:uiviewcontroller) { let currentuser = pfuser.currentuser() if ((currentuser) == nil) { return } if let location = newuser.location { currentuser["location"] = location } if let phone = newuser.phonenumber { currentuser["phone"] = phone } currentuser["displayname"] = "turkey" pfuser.currentuser().save() }
result:
error: parse::usercannotbealteredwithoutsessionerror (code: 206, version: 1.5.0)
need create session or something?
remedy?
update sdk. had exact same issue. when updated 1.6.0 issue resolved itself.
Comments
Post a Comment