FAQ Database Discussion Community


Why does saveInBackgroundWithBlock only work *once* in my Parse-enabled class?

ios,objective-c,parse.com
I have a class with this code which gets called a few times per minute on average, and only runs on the main thread: PFObject* eventObj = [PFObject objectWithClassName:@"AdminConsoleEvent"]; eventObj[kACParseEventName] = event; eventObj[kACParseEventUrgency] = urgency; if( param1 ) eventObj[kACParseEventParam1] = param1; eventObj[kACParseEventPointerToAdminConsole] = self.adminConsole; === [eventObj saveInBackgroundWithBlock:^(BOOL succeeded, NSError *error)...

Best way to save traffic in iOS Parse App

ios,arrays,swift,parse.com,traffic
I have a logic problem in my app using Parse, Regarding which path to choose to save in traffic, and if someone has already faced a similar problem, I will really appreciate the help. Also, you can end up helping other developers facing the same problem I have a social...

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

javascript,parse.com,cloud-code,pfobject,pfuser
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 is Class Friends not class User. I try do a cicle...

Parse and Swift Geopoints not saving

swift,parse.com,geopoints
I have tried everything. No matter what my Geopoints will not save when using an actual device with xcode or using the simulator. if signUpError == nil { PFGeoPoint.geoPointForCurrentLocationInBackground { (geoPoint: PFGeoPoint?, error: NSError?) -> Void in if error == nil { PFUser.currentUser()!.setValue(geoPoint, forKey: "location") } } I am not...

How do you push 10,000 results into an array before moving on in Parse.com

javascript,arrays,parse.com,promise
I have a Parse.com query and a function where I want to send the data from the Parse.com query. I need to sum all of the results from the table and it returns more than 1,000 Parse.com objects. I'm sure there are many ways to deal with this issue but...

Facebook LogIn and Parse

android,facebook,parse.com,facebook-javascript-sdk
I've just added Facebook login to my app, I can retrieve the data I need. But I'm not completely sure what to do with it. My app already works with normal users to Parse.com (which I registered on a register screen that I have created in my app). But what...

Parse (Java for Android) login returns Object Not Found

java,android,login,parse.com
I'm trying to login using Parse for android. If I enter the correct username and password, I log in successfully. But when I use a wrong password or username, I always get error 101: object not found. Here's the code (Notice "username" and "password" are EditText): private void doLogin() {...

Logout from Facebook using Parse - Swift

ios,swift,parse.com,facebook-ios-sdk,logout
I'm trying to completely log my user out of my app. When using PFUser.logout() I successfully log the user out of Parse. But when I come back in the app and click on the login button, I'm redirected to the Facebook screen saying :"You have already authorized [name of the...

Is it possible to make a parse.com database available for public download/export?

parse.com
I'm wondering if it's possible to make a database on parse.com available publicly for download. I have a scraper running on Google App Engine that grabs data from Kickstarter and saves it to Parse, and I want to make it available for researchers, hobbyists, etc.

Does Parse.com support prompting Users to agree to terms & privacy policy agreements

ios,parse.com,pfloginviewcontroller
I'm using PFSignUpViewController and PFLogInViewController to prompt users to create accounts and login. How can I prompt users to agree to some "disclaimers": my app's terms & conditions and a privacy policy? I haven't found an example on parse.com...

Unable to upload file (images) onto server in php using parse.com database

php,parse.com
I am trying to upload file onto parse.com using PHP. The code below works absolutely fine when I try upload the file(image) onto parse.com using "localhost"(Local Server). But when I connect to main server (Linux server) and try to upload the file(image) its not uploading into parse. Please help me...

How to send users a photo with Parse?

xcode,parse.com,photos
I have set up an imageView in Xcode with a image from the camera roll and I want to be able to send this photo to other users that are already in the current user's friend list. I understand how to generally upload the photo, but I don't really know...

Array index out of range on refresh

ios,swift,uitableview,parse.com,pfquery
I have a Posts class that I am querying in a UITableViewController using Parse as my backend. In my viewDidAppear I call my loadData() function. And then I have a var refresher = UIRefreshControl() that is responsible for my refresh() function. After a few time reloading the data I get...

Can't perform authentication through facebook with Parse

android,facebook,parse.com
I want to perform authentication with facebook,using Parse to store user's information. I got the following code in my application class : public class App extends Application { public void onCreate() { super.onCreate(); Parse.enableLocalDatastore(this); Parse.setLogLevel(Parse.LOG_LEVEL_VERBOSE); Parse.initialize(this, "[XXX]", "[XXX]"); ParseFacebookUtils.initialize(this); } } And in my login activity the following : public...

Cross-platform text, image, video Chat for Android, iOS and Web using Firebase/Parse/PubNub

android,ios,parse.com,firebase,pubnub
I want to develop a cross platform chat application which I can use to send text,url,image,location,video to my friends which can be on android/ios/web. I want chat to be realtime, and want to make sure that even if user is not using application, he get a 'Notification' for new incoming...

Parse: Facebook user unlink and login again creates two user table entries

ios,swift,parse.com
I see that my parse login through Facebook code looks like this. PFFacebookUtils.logInInBackgroundWithReadPermissions(permissions) { (user: PFUser?, error: NSError?) -> Void in if let user = user { if user.isNew { println("User signed up and logged in through Facebook!") let graphRequest : FBSDKGraphRequest = FBSDKGraphRequest(graphPath: "me", parameters: nil) graphRequest.startWithCompletionHandler({ (connection, result,...

Using parse.com and having allocation memory issue

android,memory,memory-management,parse.com,allocation
I'm new to programming, I've been making an app for the last 3 months and learned a few things. But I haven't come across to how to solve this issue. I've been using Parse.com as my server, sending pictures, saving user data etc. With all of this data the app...

GCD Implementation not working with PARSE Query (Swift)

ios,swift,asynchronous,parse.com,grand-central-dispatch
I've looked all over Stack Overflow and other web resources on how to handle the async PARSE query and storing this data into an array. I then use this array to populate a table in another view controller. Code structure is as follows: AppController.swift: public var BuisnessNames = [NSString]()...

need the way to put Date in Parse.com without Time and the opposite

android,date,time,parse.com
Can't figured how to put just Date or just Time to Parse.com. Even after SimpleDateFormat the Date objects transferring with full default missing data. Code samples: DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy"); DateFormat timeFormat = new SimpleDateFormat("HH:mm"); try { date = dateFormat.parse(mDate.getText().toString()); time = timeFormat.parse(mTime.getText().toString()); } catch (java.text.ParseException e) { ......

Android Studio NullPointerException, trying to use parse.com

java,android,parse.com,nullpointerexception
I am trying to use Parse.com for the user login/signup activity for my apps, and I am learning how to use it by following this tutorial http://www.androidbegin.com/tutorial/android-parse-com-simple-login-and-signup-tutorial/ . But after I typed in everything, my app keep crashing and giving NullPointerException And here is my MainActivity package com.example.ed.parselogintutorial; import android.app.Activity;...

Get object id doing query by userID and Date

objective-c,parse.com
Im very new at iOS programming so i started to build apps using Parse. So i have class "Photo" and it stores all the photos of all users. So i need to build a query that returns latest posted image by the current user. So i did this. -(PFQuery*)checkImage{ PFQuery...

How to redirect user to another internal page?

javascript,redirect,parse.com
After creating the record, the user would be redirected to an internal page. "redirect to home.html" I've tried, add the code under "Sucess" but had no success :( How to be redirected after register or log in? window.location.href = "http://stackoverflow.com"; With the above code only works after pressing F5 <script...

[Error]: bad characters in classname: (null)

ios,swift,parse.com
When I am querying for objects from Parse, I get the error: [Error]: bad characters in classname: (null). Here is my querying function: func findEmployeeForLoggedInUser(completion: (array: [PFEmployee], error: String?) -> Void) { var query = PFQuery() query.whereKey("employerId", equalTo: PFUser.currentUser()!.objectId!) query.findObjectsInBackgroundWithBlock { (results, error) -> Void in var employeeArray = results...

How to store PNG images for profile pictures on Parse.com?

ios,xcode,swift,parse.com,uiimage
I am using the code below to sign up a user with username, password, and a profile picture. WHen the profile picture is a JPG it works but NOT when the format is 'PNG`. WHen I upload a png image, the image is blank. I think JPG is working because...

How to use relations between a Parse subclass and an User - Swift

swift,parse.com,boolean,relation
I am building a Quiz App and I have a class named "Questions" in Parse. When my user answers a question, I wanted that question to be removed from the questions that he needs to answer. I then wanted to add a subclass named "QuestionAnswered", a boolean that would return...

Saving data using promises

javascript,parse.com,promise
On Parse.com I have the following function, and my question follows: function myFunction(array, value) { var logMessage; logMessage = "array: " + array.length.toString(); console.log(logMessage); if (!array.length) return; if (!value) value = Math.min(10, array.length); if (array[array.length - 1].get("advertisePointNumber") >= value) return; var classPromise; array[array.length - 1].set("advertisePointNumber", value); logMessage = "(BIS)array: "...

Prevent creating Parse PFUser with just setting username

ios,objective-c,parse.com
In my app users can create an account using Parse. This works fine but I just noticed that when I sign up with a new username it is ok to not register a password. I have subclassed the PFUser and this is my sign up: // LoginViewController.m - (IBAction)signUpButtonPressed:(UIButton *)sender...

Retrieve objects from Parse and put them in an array

arrays,parse.com
I have a class "Object" on Parse which contains a column with int values named "Score". I want to put all those values (using a Parse Query) inside an array which is going to be used in my project. So, how can I retrieve those int values from Parse and...

Cordova Push Notification using Parse not working when app is Open when App is closed or in background it is working in Window Phone

windows-phone-8,parse.com,push-notification,cordova-plugins
I have created in windows phone in Cordova. All things are working fine. But now I have integrated Push Notification using Parse. I have configured correctly. But now I am only getting push when my app is in background or closed. But I am not getting Push notification when my...

Is it possible to Login to Facebook using Parse with publish_actions and email permissions?

android,facebook,facebook-graph-api,parse.com
I'm searching for days trying to figure it out but I only find questions or old answers that seems not to be working anymore. Loging in to Facebook with Parse is easy if you go through the tutorial, but if you want to do something "usefull" it just tells you...

Appending PFObject to Array - EXC_BAD_ACCESS

ios,swift,parse.com,exc-bad-access
I am currently using Swift and Parse and have run into an issue which I haven't been able resolve for the past several hours. On a button click, I am attempting to add an Employee object to an Event object's eventAttendee's array. @IBAction func joinEvent(sender: AnyObject) { var employee =...

Parse Cloud httpRequest does not return a response

javascript,json,parse.com,httprequest,cloud-code
I am calling my Parse Cloud function from a js in my browser. I am doing merely as a test. I am trying to make a GET call to http://api.geonames.org . If I execute it in the browser as http://api.geonames.org/citiesJSON?north=44.1&south=-9.9&east=-22.4&west=55.2&lang=de&username=demo it does work. It returns: {"geonames":[{"fcodeName":"capital of a political entity","toponymName":"Mexico...

when doing query for parseUsers and shoing them in listFragment, while switching fast from fragment to fragment the app crashs

android,parse.com,android-listfragment
Sorry for asking near same questions, cause my low reputation can't comment there. So I am using parse.com and doing a query for users and putting them in a list that in fragment. The app works, but when I switching between fragments fast, it crashes with exception: java.lang.IllegalStateException: Content view...

Xamarin.Android and Parse

c#,parse.com,xamarin,monodroid
I am writing an app with C# and Xamarin.I am using Parse at the backend.I am currently stuck at point where when a user clicks signup button my app checks for a user with same phone number in parse database.Ideally If app finds app makes a toast of "cannot signup".If...

parse.com - Nested query and Join Table

android,parse.com,nested-queries,nested-query
I have problem with nested query. In query5.whereEqualTo("piwo", followList2.get(0)) I want to get the object, but it spits error that followList2 needs to be declared final, but when it does all the anonymous class gets in red with Cannot resolve constructor(...) error. Anyone got this before? ParseQuery<ParseObject> query3 = ParseQuery.getQuery("Piwo");...

Send push notification by using Parse from laravel web server to android device

laravel,parse.com,push-notification
I cant find how to send push notification by using Parse.com from my web server to android device using laravel. can anybody help me ?

Create a PFObject and PFRelation after PFUser Sign Up

ios,swift,parse.com,pfuser,pfrelation
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? // SIGN UP USER...

Facebook user to Parse.com

android,facebook,parse.com,facebook-login
How do I get the data from The Facebook user to Parse.com? The code that I will provide below makes a user but it doesn't update it with data when I login, why is it not working? public class LoginActivity extends Activity { private EditText usernameView; private EditText passwordView; @Override...

How to display Parse username in XCode

ios,swift,parse.com
How do I access a registered username in Parse and display it with a label in a ViewController? This does not seem to be working: self.usernameLabel.text = PFUser.currentUser()?["username"] ...

Parse query then state change after resolve

angularjs,parse.com,angularjs-factory,angularjs-ui-router,angularjs-promise
I have a factory defined to make a parse call that resolves upon completion. .factory('currentRestaurantService', ['$rootScope', '$q', function($scope, $q) { return { getCurrentRestaurant: function() { var defer = $q.defer(); // Create a deferring object $scope.currentUser = Parse.User.current(); // Get restaurant for user var restaurantObject = Parse.Object.extend("Restaurant"); var query = new...

Swift Facebook Login AppID Not Registered as a URL Scheme

ios,facebook,parse.com,info.plist,app-id
I'm getting the following error when trying to login with Facebook Terminating app due to uncaught exception 'InvalidOperationException', reason: 'fb---AppID--- is not registered as a URL scheme. Please add it in your Info.plist' The problem is the "fb---AppID---" is in my Info.plist file. I followed the 3 bullet points listed...

Parse REST API not returning Client Key

android,rest,parse.com
I'm trying to create Parse apps on the fly and use the keys while building my Android application. The API works great except for one point, it does not return the Client Key. { "appName": "my new app", "dashboardURL": "https://www.parse.com/apps/my-new-app--30", "applicationId": "oQqMyipkIgxYFXRROYTZsREfTcXp770awB1yMVrs", "javascriptKey": "XAPZ7DoZHQIhMC8vPqN1m79wRIQyIXv7tmVIHmRs", "windowsKey": "ZsyfFr0WtaQx6tsCokNSmTvjd05QCbCbMLzpChvP", "webhookKey": "LyXnWJ3tRH56gK19KC1fjTvoUbdSUZoXhyO6khoT", "restKey":...

Odd behavior of PFQuery

ios,objective-c,parse.com
I am trying to find all posts by the current user. When I add the line [query whereKey:@"user" equalTo:[PFUser user]]; the query does not even get executed, since "retrieving posts?" never prints to the console. When I comment out [query whereKey:@"user" equalTo:[PFUser user]]; it works just fine. What am I...

Save user mobilenumber - can not be applied to edit text

android,parse.com
I am really stuck how to handle the user input with mobile-numbers. I keep get the error "Can not be applied to Edit-text" is there any other way to do this? XML <EditText android:layout_width="200dp" android:layout_height="40dp" android:inputType="phone" android:ems="10" android:id="@+id/mobilnummer" android:hint="Mobilnummer" android:imeOptions="actionSend" android:textColor="#000000" android:background="#ffffffff" android:phoneNumber="true" android:layout_weight="0.80" android:layout_marginLeft="20dp"...

Express js 4, Parse.com JSON error

javascript,jquery,node.js,express,parse.com
I am trying to send a POST call to an Express JS server hosted on Parse.com. I send the data like this: var data = new Array(); data["firstName"] = firstName; data["lastName"] = lastName; data["dateOfBirth"] = dateOfBirth; data["mobileNumbe"] = mobileNumber; data["email"] = email; data["reEmail"] = reEmail; data["pw"] = pw; data["rePw"] =...

Parse javascript one to many relations query

javascript,angularjs,parse.com
In Parse I have several tables: Restaurant, Party, Payment. A payment belongs to one party which belongs to one restaurant. I want to get all payments for all parties from a single restaurant (which I have access to). How do I go about writing this relationship's query using Parse and...

I have an issue in Parse Data?

ios,objective-c,uitableview,parse.com
I have worked in Xcode , It brings the news from a database In TableView , But News comes scattered , So that the first news table up to the top, and the new story comes down to the bottom . This picture, explain what is meant ...

How to prevent _User table from growing unnecessarily when using PFAnonymousUtils iOS SDK?

ios,parse.com
What is the best way to handle the scenario described below? I am giving the user limited access (READONLY) when logged in anonymously. The problem i am facing is that i am afraid is that the _User table would grow unnecessarily with redundant data. Steps: 1. user logged in anonymously...

Linking error when building Parse in Xcode 7

swift,parse.com,ios9,xcode7,swift2
I am trying to add the Parse.com SDK to my Xcode 7 project. I have followed the getting started guide and I have managed to do it before in Xcode 6. However this time I am being shown this error message when I try to build: ld: framework not found...

cant keep basic cloud code function to work using parse.com

javascript,parse.com
I am unable to get basic cloud code functions working using Parse.com. I want to keep main.js as clean as possible, and also want to attach functions to HTML buttons and keep that process clean and easy to use. My solution was to only use main.js for cloud code definition,...

How to properly use Parse.query.equalTo?

javascript,node.js,parse.com
In my web application when the user logs in they should see all the documents they made. However when I test my application, I see all the documents including the ones that I didn't make. I believe this is because I am not using Parse.query.equalTo correctly. Here is my code:...

Sign Up screen with Parse.com Android Studio

java,android,authentication,parse.com
I'm an Android student and I'm trying to set up a Sign Up screen and save the user in parse.com but when I click on Sign Up button gives me error and I don't know why. Also I don't know how to test if the password and repeat password editable...

How to prevent duplicate entry on parse?

ios,objective-c,iphone,swift,parse.com
I' trying to save song info to parse, but if the song already exist in parse I want my code just do nothing. I've tried this code below: var Music = PFObject(className:"Musics") var query = PFQuery(className:"Musics") query.findObjectsInBackgroundWithBlock { (objects: [AnyObject]?, error: NSError?) -> Void in if error == nil {...

Keep getting an out of memory error when fetching many items on startup

java,android,parse.com
I am fetching the logged in user's likes from the Parse Database. However when i do the query, I get an OutOfMemoryError: java.lang.OutOfMemoryError: Failed to allocate a 78089518 byte allocation with 16777216 free bytes and 26MB until OOM at java.lang.String.<init>(String.java:332) at java.lang.String.<init>(String.java:149) at java.lang.String.<init>(String.java:119) at com.parse.ParseRESTCommand.onResponse(ParseRESTCommand.java:176) at com.parse.ParseRequest$3.then(ParseRequest.java:229) at...

Mandrill Handlebar Template does not render / merge with Parse.com object correctly

templates,parse.com,mandrill
I'm using Mandrill to send template-based email notifications each time a given Object is created in a Parse.com app. The Mandrill template (made with Handlebars) uses 2 typical Parse.com object properties: objectId --> {{object.objectId}} in the template createdAt --> {{object.createdAt}} in the template The problem is that other object properties,...

Save Any Unsaved PFObject Even User Terminate the App

ios,swift,parse.com
I am creating a social network app where user can create groups, post pictures, update pictures. etc The problem I am experiencing is that sometimes, during the process of saving data to Parse, user can terminate the app. I am wondering if there is any workaround this problem? Is there...

Constructing Regex to match anything in an array of `inclusions` string literals, excluding anything in `exclusions`

regex,parse.com
I have two arrays of string literals: inclusions and exclusions. I'd like to create a Regex which will match a string if it contains any of the inclusions, but only if it matches none of the exclusions. Given the sample case inclusions=[learning,test] and exclusions=[machine]: learning should match this is a...

using parse cloud function

javascript,android,parse.com,cloud-code
ok, im trying to make a average for the objects related with the user, realize the operations and return the results in a parse object of the same class. i dont know if this is correct. this is the parse cloud code: Parse.Cloud.define("Stats", function(request, response){ var query = new Parse.Query("stats");...

Filtering undefined files in PFQuery

ios,objective-c,parse.com,pfquery,pffile
I'm using Parse as a backend for storing image-based news items. Each news item has an image file. Some image files are 'undefined' and some have jpegs. I have an iOS app front end which shows news items in a PFQueryTableViewController. In the QueryForTable, I'd like to filter out records...

Saving Related Objects with Primary Object in Parse

parse.com
I've been reading the documentation regarding savings objects that are related to other objects, but I keep getting stuck. Here's a simplified view of my schema: Class: Aircraft Columns: objectId (String), name (String) Class: CustomValue Columns: objectId (String), value (String), aircraft (Pointer<Aircraft>) When I save an aircraft, can the custom...

Handle Parse push notifications while app is not running (Android)

java,android,parse.com
Parse Version: 1.9.2 When I send a push notification from my Parse dashboard and the app is not running I receive the following dialog error: "Unfortunately 'app name' has stopped." Notifications work while the app is running, but obviously the vast majority of the utility of a push notification is...

Assigning a value to an object of type AnyObject

swift,syntax,parse.com
I have a variable var post :AnyObject? which is an object that I got back from a Parse API call. I want to do this post["caption"] = captionTextView.text but I get the following error message Cannot subscript a value of type 'AnyObject?' with an index of type 'String' I already...

Parse.com Framework Sort Date Next Birthday

ios,swift,parse.com,ios8
Need to sort on iOS by date using Parse.com but I need to order them based on the next birthday for a specific person. I tried to add the day and month with the current or next year and that helped but that will be a manual process, any recommendations...

Parse database initialization- app crashes when navigating back to MainActivity

java,android,parse.com
When my project starts up it's fine. MainActivity starts and then it navigates to another page but when I navigate back to MainActivity I sometimes get this error. http://imgur.com/FVhWMHn I'm positive this is from calling Parse.enableLocalDatastore before Parse.initialize but here is my code for mainActivity Parse.enableLocalDatastore(this); super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Parse.initialize(this, "MY_INFO",...

Profile picture in cell not updating correctly

ios,swift,parse.com
I have a PFQueryTableViewController populated by comments from different users. Each user has a profile picture stored on the Parse database. After loading each comment into a cell, I query the PFUser class to retrieve the profile picture of the user who posted the comment and add it to the...

Parse.Cloud.httpRequest not returning response

parsing,parse.com,cloud-code
I am trying to make a Parse.Cloud.httpRequest call, the job executes successfully but i am not getting any response. If i run the request on a RestClient it executes fine but for some reason it's not working in Parse Cloud Code. What am i doing wrong? Parse.Cloud.job("Loader", function(request, status) {...

Return last inserted objectId with Xamarin and Parse.com

c#,parse.com,xamarin
I am new to C# so please be gentle with me. How do I get the objectId of an inserted object with Xamarin and Parse.com var obj = new ParseObject ("TestObject"); obj ["foo"] = "Hello, world! This is a Xamarin app using Parse!"; await obj.SaveAsync(); //Success -> here I want...

How to update in parse database custom table using android

android,parse.com
I know about how to insert in custom table in parse.com database but i don't know about it how to update. i confuse in the how to get all object value from the table. so you have any idea about it. Thanks in Advances....

Initiliazing ParseLoginUI?

java,android,parse.com
Where does one actually place the code to launch the ParseLoginUI activity? ParseLoginBuilder builder = new ParseLoginBuilder(MainActivity.this); startActivityForResult(builder.build(), 0); Is it in the ParseLoginDispatchActivity? This was not made very clear at all within any of the official documentation: https://github.com/ParsePlatform/ParseUI-Android https://www.parse.com/docs/android/guide#user-interface I'm importing ParseLoginUI into my existing app. What do I...

Issue with Parse & Facebook

ios,iphone,facebook,swift,parse.com
I started to develop an app using Parse and Facebook. I've added both SDKs. This is my ViewController code(The fbLogIn is a button of "Connect with Facebook"): class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be...

I can retrieve the information from parse, also I can print that array, but when I try to put those array element in tableviewcell nothing shows up

ios,arrays,swift,parse.com
I can retrieve the information from parse, also I can print that array, but when I try to put those array element in table view cell nothing shows up the array.count also return 4 I don't know why table cell is empty import UIKit import Parse class friendsViewController: UITableViewController {...

Parse: How can I update all rows with the same key value?Thanks

ios,swift,parse.com
How can I update all rows with the same key value in a Parse class? As my code, I think Parse would cost a lot of my money if there are 100 objects per user. Is there any other way to do that? Thanks a lot! let username = PFUser.currentUser()?.username...

Empty RecyclerView using fetched Data from parse.com

java,android,json,parse.com,recyclerview
I am currently struggling to implement data fetching from a class i created on parse.com. I wanted to retrieve an object which is entitled "flyerDataFetch" and all of its elements to display within a Recyclerview. When I run and compile the program I receive the errors: error:java.lang.NullPointerException at android.view.LayoutInflater.from(LayoutInflater.java:211) Error:...

PFQueryTableViewController pagination doesn't work with heightForRowAtIndexPath

ios,swift,parse.com,pagination,pfquerytableviewcontrolle
I am using parse.com framework with Swift and in PFQueryTableViewController when I set the pagination it won't work. If the DB has less rows than the number set in objectPerPage it works fine, but if there are more rows and when I run the app it keeps showing the loading...

iOS 8 Swift 1.2 and Parse - Attempt to present UIAlertController on ViewController whose view is not in the window hierarchy

ios,objective-c,swift,parse.com,ios8
There are many questions on Stack concerning this issue, but none of them seem to solve the issue I'm having. I am using ParseUI for the login and signup portion of my application. What I would like to have happen is for a UIAlertController to be presented when a user...

how to print users of Parse in Objective C?

objective-c,arrays,parse.com,user,pfquery
I'm trying to print users loaded of Parse, but can't find the error in the code. -(void)viewDidLoad { [super viewDidLoad]; PFQuery *query = [PFQuery queryWithClassName:@"User"]; [query orderByAscending:@"username"]; [query findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) { if (error) { NSLog(@"Error: %@, %@", error, [error userInfo]); } else { self.allUsers = objects; NSLog(@"%@",self.allUsers); [self.tableView...

Sending push on Parse

android,parse.com,push-notification
I need a liitle bit help. And here is my code : `ParseQuery<ParseUser> query=ParseUser.getQuery(); query.whereEqualTo("username", buddy); query.getFirstInBackground(); ParseQuery q1=ParseInstallation.getQuery(); q1.whereEqualTo("owner", query); ParsePush push = new ParsePush(); push.setQuery(q1); push.setMessage("Hey its message"); push.sendInBackground();` But its not work , owner is people who i want to send push . When i am saving...

Convert data to an UIImageView

parse.com,uiimage,nsdata
I try to convert data from parse.com into my UIImageView. for (PFObject *object in objects) { PFFile *file = [object objectForKey:@"imageData"]; [file getDataInBackgroundWithBlock:^(NSData *data, NSError *error) { [contentImageArray addObject: [UIImage imageWithData:data]]; }]; } I load my data in a NSMutableArray, this still works, but then I want my data in...

How can i make one to many relation in parse using PHP

php,parse.com
i have search alot but didn't find how to make relation in parse using php, even on parse php guide no examples are available , can you help me please if you can show any example that would help many peoples who are looking for parse relation one to many...

Create a User with Profile Picture with Parse in Swift

ios,swift,parse.com,pfuser
How would I create a sign up page using Parse where I could also get the user to input there own profile picture in Swift.

Check If Server's Image is Already Updated and Download Again

ios,swift,parse.com,nsdata,sdwebimage
I would like to know what is the proper way of caching image and store it to Parse.com, and load it back, update cache etc. So here is the scenario: I have a social network app where user can upload their profile picture. Once the user upload the picture. I...

Parse store current user in class

android,parse.com
I am tryign to store the current username in the class and having such a tough time. This is only part of the code String usernameNewbet = currentUser.getUsername().toString(); bets.put("EndDate", endDate); bets.put("EndTime", actualTimeString); bets.put("Player_Pointer", usernameNewbet); But when I am trying to save I am getting this error. ...

How can I set up cloud code (for an existing project) on a new machine?

parse.com
I have an existing parse.com project with some hosted code and some cloud code. I have a new machine that I would like to move the development to and have found no way in the documentation on how to do this. I wish to hook up to an existing project...

New Column is Not created on User Table on First Custom PFUser SignUp

parse.com,pfobject,pfuser
I am now trying to subclass a PFUser. Normally I would expect the uninitialized variable would be created as a column on the User table. But somehow it only create the initialized variable. Here is how I did it. class CustomUser: PFUser, PFSubclassing { @NSManaged var displayName: String; @NSManaged var...

Having issue with asynchronous processing using Parse

ios,swift,parse.com
I have a Parse database which has records consisting (among other items) of PFFile items of thumbnail images. The database is read-only and was created successfully using another program. I confirmed that all thumbnails are in Parse. When I try to retrieve the thumbnails using the function shown below, I...

Errors - Linting www/js/parse.js

parse.com,ionic-framework
I am developing an app using ionic framework. In it i am integrating Parse server API. but when i am running my application i am facing following problem - Linting www/js/parse.js Errors in file www/js/parse.js 9212:1 -> Unreachable '(' after 'return'. -> (function() { 9265:2 -> Read only. -> exports...

Setting ACL for new Parse user in swift

swift,parse.com,acl
Im currently running into a problem with users having access to objects of another user in my app. I know how to set the ACL when a user creates an object when they are already logged into the app, but I don't know how to set the ACL for someone...

Saving to Parse.com database in applicationDidEnterBackground

ios,objective-c,parse.com
I'm using Parse.com as my backend and want to update something in the database (a badge count) when the app enters the background. I am using this code below. I understand that this only allows for five seconds of operation time though. Is there a way to extend this time?...

Cannot assign a value of type 'NSData!' to a value of type 'AnyObject?'

swift,parse.com
I just started to learn Swift by following tutorials and online courses. I can't save in Parse the Facebook user profile picture due to this error: Cannot assign a value of type 'NSData!' to a value of type 'AnyObject?' My code: override func viewDidLoad() { super.viewDidLoad() var user = PFUser.currentUser()...

Uploading Strings in an array of labels to parse

ios,arrays,xcode,parse.com,labels
I have an application with a lot of labels on it indicating numbers that the user chooses. These numbers are displayed in labels. The main goal of the app is to upload those numbers in an array to Parse. I'd like some help on which road I should take. I...

ParseObject() has protected access

java,android,parse.com
Still trying to figure out this Parse thing. I'm getting error that says that Parse is protected. I have tried putting it in its own class extending Object but then I got a lot more errors. Any advice will help. mSignUp.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { String...

How necessary is symbolication for ParseCrashReporter

objective-c,parse.com
Is it a big deal if I leave this out? Will it be confusing to me when reading the crash logs?

Is this a valid JSONObject & if yes then how do I iterate to get all the values

parse.com,jsonobject
I have this response from server which is a valid JSON. {"Avg":[{"avg":3,"rcid":"ww44sd"},{"avg":4,"rcid":"ww24hj"},{"avg":3,"rcid":"ww36hd"},{"avg":4,"rcid":"ww89yx"},{"avg":3,"rcid":"ww64tf"},{"avg":4,"rcid":"ww76py"}]} I wrote the following code but I fail to understand how this is not a JSONObject. Logcat shows this error FATAL EXCEPTION: main java.lang.ClassCastException: java.util.HashMap cannot be cast to org.json.JSONObject ParseCloud.callFunctionInBackground("avgfunc", params, new FunctionCallback<JSONObject>() { public void...

How to retrieve authData from a ParseUser?

android,facebook,parse.com
I'm trying to retrieve the authData field from a ParseUser. With Parse 1.9.1, I used to do it like so: ParseUser user = ParseUser.getCurrentUser(); HashMap authDataMap = (HashMap)user.get("authData"); HashMap facebookMap = (HashMap)authDataMap.get("facebook"); String facebookId = (String)facebookMap.get("id"); And this worked fine. Something changed though. I don't know if it's because I...

didRegisterForRemoteNotificationsWithDeviceToken doesn't return deviceToken

ios,parse.com,push-notification,apple-push-notifications
I am registering for push notifications through Parse this way: func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { Parse.setApplicationId("RfSGbVes0FGIX1sfxTEb3iybVsKgKPrfDuxco3vC", clientKey: "3pFBMar6vO6iUJouqTMt4VJVKZaXUc6p9RgHzTep") if application.applicationState != UIApplicationState.Background { let preBackgroundPush = !application.respondsToSelector("backgroundRefreshStatus") let oldPushHandlerOnly =...

Push Notification Testing Workflow [iOS]

ios,iphone,xcode,parse.com,push-notification
I have hit a dilemma and don't know how to go about this problem. I have an application right now being tested by a good amount of people. Within this app, I have push notifications set up. No problem with them at all. Everything is going great. I hit a...

How to Parse sync data between devices?

android,parse.com
Is it possible to make for example a chat app using parse, in a way that when 1 device sends a message to the other device, the other device will recieve it instantly, without using any timer. Which means Parse will somehow send the other device the message when it...

Storing a PFObject pointer in an app's PFConfig

ios,parse.com,pfobject
I want to store a pointer to a specific object as an Object Pointer in a PFConfig, similar to how objects can point to each other in the database. I see there is a way to create an Object field in the PFConfig, but when I enter the corresponding objectID...

Query to retrieve a BOOL from Parse DB for the current logged in user, which will determine what segue to go to

ios,objective-c,iphone,xcode,parse.com
I'm trying to create a Query that will access a BOOL from the current logged in user's data from my Parse database. So far, when the user creates an account, the boolean profileCompleted is automatically assigned to NO as the user has not finished creating their profile. (This takes place...

PFObject subclassing with relationships

ios,parse.com
I have two classes: @interface RMEvent : PFObject <PFSubclassing> @property (nonatomic, strong) NSArray *attachments; and @interface RMFile : PFObject <PFSubclassing> @property (nonatomic, strong) PFObject *event; I'm doing this: RMEvent *newEvent = [RMEvent object]; [newEvent pinInBackground]; RMFile *newFile = [RMFile object]; newFile.event = newEvent; [newFile pinInBackground]; [newEvent addObject:newFile forKey:@"attachments"]; and I...