Questions tagged [pfuser]

The PFUser class is a local representation of a user persisted to the Parse Data.

@interface PFUser : PFObject <PFSubclassing>

The PFUser class is a local representation of a user persisted to the Parse Data. This class is a subclass of a PFObject, and retains the same functionality of a PFObject, but also extends it with various user specific methods, like authentication, signing up, and validation uniqueness.

Many APIs responsible for linking a PFUser with Facebook or Twitter have been deprecated in favor of dedicated utilities for each social network. See PFFacebookUtils, PFTwitterUtils and PFAnonymousUtils for more information.

To find more information :

223 questions
1
vote
1 answer

Save a Parse Object Causes Another Object Saved Too

I am quite new with Parse, I am confused on how parse works. Here I have a PFUser, PFGroupObject, PFUserGroupObject. Where PFUserGroupObject is a "Table" that relate user an group. PFUserGroupObject and PFGroupObject is my custom PFObject What…
JayVDiyk
  • 4,277
  • 22
  • 70
  • 135
1
vote
1 answer

Parse.com get users from subquery in other class Cloud Code

I have the class Friends on Parse: Class Friends{ "from" : Pointer(_User) "to" : Pointer(_User) "allowSee" : Boolean "block" : Boolean "createdAt" : Date "updatedAt" : Date } I have a Parse.Query where I get my friends, but this…
1
vote
2 answers

Create a PFObject and PFRelation after PFUser Sign Up

In my structure, I would like to signUp a User and assign a Group to it directly (Many to many relationship model) Below is how I signUp the user. after completion, I have no idea how to relate to the PFObject using PFRelation. Any thoughts please?…
JayVDiyk
  • 4,277
  • 22
  • 70
  • 135
1
vote
2 answers

Parse PFUser Subclass Sign Up using Swift Best Practice

I have just downloaded and experimented with Parse. Everything works as expected, but I have a question regarding a good subclassing design. The standard PFUser has THREE fields by default. username emailAddress password I would like to add a…
JayVDiyk
  • 4,277
  • 22
  • 70
  • 135
1
vote
1 answer

How can I get users within a given radius of distance using PFGeoPoint

I have PFGeoPoint in Parse and there is a serachView where the user will enter the radius in miles. So it will return a list of users who are within dat radius of distance. I know we can fetch the distance from coordinates but I don't know how to…
Sushrita
  • 725
  • 10
  • 29
1
vote
1 answer

Delete PFUser with Cloud Code Parse.com iOS

I succeed to add friend with Cloud Code and Parse.com. Now I would like to delete friend relation with Cloud Code in didSelectRowAtIndexPath My error is "attempt to insert nil object from objects[0]'" But I don't know what parameters I need to…
xcode_Dev
  • 237
  • 4
  • 16
1
vote
2 answers

PFUser currentUser not saving in iOS7

I am using the below code to save the currently logged in user with custom field. I allow the user to fill in information and then save. I used both the save methods on my own threading using GCM and used the saveInBackgrounWithBlock. On iOS8, this…
ChrisBorg
  • 1,418
  • 17
  • 27
1
vote
2 answers

Always Query Using Current User in Parse iOS

As I understand it, I can auto-populate the ACL column in any newly-added records in Parse by setting this: PFACL.setDefaultACL(PFACL(), withAccessForCurrentUser: true) Is there a way to always perform queries using PFUser.currentUser() as a filter…
Clifton Labrum
  • 13,053
  • 9
  • 65
  • 128
1
vote
1 answer

How do I access the remaining fields of Parse's User (PFUser) Object?

I'm trying to access the balance of the data fields of the current user. The following is what I can only see when querying the currentUser in the debugger: (lldb) po currentUser { …
Frederick C. Lee
  • 9,019
  • 17
  • 64
  • 105
1
vote
1 answer

Swift Parse create a user

I'm new to swift, and I'm having a difficult time figuring out why the code on https://www.parse.com/docs/ios_guide#users/iOS isn't working for me var user = PFUser() user.username = "myUsername" user.password = "myPassword" user.email =…
josealvarado111
  • 565
  • 1
  • 9
  • 24
1
vote
0 answers

Parse: Do users created with 'enableAutomaticUser' get discarded every time the app is terminated?

Parse version 1.7.1 as built by Cocoapods I have a completely bare project where I set up an anonymous user through [PFUser enableAutomaticuser]. Judging by the _Users table in Parse, it looks like the ID's are discarded when I terminate the app,…
user
  • 3,388
  • 7
  • 33
  • 67
1
vote
0 answers

PFUser becomeInBackground Not Found

On parse's blog, they say you can use: [PFUser becomeInBackground:@"session-token-here"; block:^(PFUser *user, NSError *error) { if (error) { // The token could not be validated. } else { //…
user717452
  • 33
  • 14
  • 73
  • 149
1
vote
1 answer

Parse iOS SDK, cannot get all fields from _User table

In my application I store information in other fields of the Parse _User table such as a user rank and home City/State. I was able to read all the data from the table for a user simply by running a PFUser query command. PFQuery *userQuery = [PFUser…
adeiji
  • 550
  • 1
  • 3
  • 13
1
vote
1 answer

Parse.com channel must start with letter

I am trying to get my app that uses Parse.com to allow you to subscribe to a user. However, 'channels' in PFInstallation requires that all channels start with a letter only, and not have spaces. However, Parse.com handles all the creation of…
user717452
  • 33
  • 14
  • 73
  • 149
1
vote
0 answers

Parse...2 Devices, 1 PFInstallation?

Is it possible on Parse to have multiple devices associated with the same PFInstallation? I login with my iPhone using Facebook credentials, and then do the same on my iPad, and get the same notifications delivered to each?
user717452
  • 33
  • 14
  • 73
  • 149