Questions tagged [parse-platform]

Parse-Platform provides an open source backend for powering end-user applications. Parse supports a number of different platforms, including iOS (7.0+), OS X (10.9+), Android (API level 9+), Unity 5, and Windows (8+), as well as web applications. SDKs are available for a number of these platforms.

ParsePlatform provides an open source backend for powering end-user applications. Parse supports a number of different platforms, including iOS (7.0+), OS X (10.9+), Android (API level 9+), Unity 5, and Windows (8+), as well as web applications. SDKs are available for a number of these platforms.

Features

  • User session management
  • Data persistence
  • Push notifications (iOS, OS X, Android)
  • Social integration
  • Cloud code execution

Getting help with Parse

Tag any answerable code-level questions specific to Parse with the parse-platform tag.

Parse is designed to be a self-service platform. You may refer to Parse's documentation for more information on using Parse. Parse also provides a community forum as a place to reach out to other Parse developers with general questions.

If you found a bug or something is not working as expected in the Parse SDKs, please open an issue on the relevant GitHub repository.

Download the SDKs

Help Contribute

Code examples

  • Android Example: persistence

    // Create a new Parse object
    ParseObject post = new ParseObject("Post");
    post.put("title", "Hello World");
    // Save it to Parse
    post.saveInBackground();
    
  • Android example: push notification

    // Subscribe to a push channel
    PushService.subscribe(context, "galaxy_nexus_news", YourActivity.class);
    // Push to the channel from the client
    ParsePush push = new ParsePush();
    push.setMessage("The new Galaxy Nexus has been released!!");
    
  • iOS Example (Swift): persistence

    var gameScore = PFObject(className:"GameScore")
    gameScore["score"] = 1337
    gameScore["playerName"] = "Sean Plott"
    gameScore["cheatMode"] = false
    gameScore.saveInBackgroundWithBlock {
      (success: Bool, error: NSError?) -> Void in
      if (success) {
        // The object has been saved.
      } else {
        // There was a problem, check error.description
      }
    }
    
  • iOS Example (Objective-C): Query Constraints

     // Using PFQuery
     [query whereKey:@"playerName" notEqualTo:@"Michael Yabuti"];
     [query whereKey:@"playerAge" greaterThan:@18];
    
     // Using NSPredicate
     NSPredicate *predicate = [NSPredicate predicateWithFormat: @"playerName != 'Michael Yabuti' AND playerAge > 18"];
     PFQuery *query = [PFQuery queryWithClassName:@"GameScore" predicate:predicate];
    
19680 questions
287
votes
9 answers

Impact of Xcode build options "Enable bitcode" Yes/No

Yesterday I recognized a ton of warnings regarding the parse.com library: URGENT: all bitcode will be dropped because '[path]/Parse.framework/Parse(PFAnalytics.o)' was built without bitcode. You must rebuild it with bitcode enabled (Xcode setting…
luk2302
  • 55,258
  • 23
  • 97
  • 137
216
votes
4 answers

How do I wait for a promise to finish before returning the variable of a function?

I'm still struggling with promises, but making some progress thanks to the community here. I have a simple JS function which queries a Parse database. It's supposed to return the array of results, but obviously due to the asynchronous nature of the…
mac_55
  • 4,130
  • 7
  • 31
  • 40
118
votes
15 answers

If no Table View results, display "No Results" on screen

I have a tableview, where sometimes there might not be any results to list, so I would like to put something up that says "no results" if there are no results (either a label or one table view cell?). Is there an easiest way to do this? I would try…
SRMR
  • 3,064
  • 6
  • 31
  • 59
109
votes
14 answers

How to compress of reduce the size of an image before uploading to Parse as PFFile? (Swift)

I was trying to upload an image file to Parse after taking photo directly on phone. But it throws an exception: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'PFFile cannot be larger than 10485760 bytes' Here is…
elvislkm
  • 1,165
  • 2
  • 8
  • 9
86
votes
1 answer

Logcat error message - Attempted to destroy barrier with non zero count

I'm making an android app in Android Studio, integrating ParseCloud and when I try to retrieve some JSONObject from the cloud, I get this error message after step-debugging: 12-13 13:32:34.857 25631-25638/com.parse.starter A/art:…
ArtanisAce
  • 957
  • 7
  • 14
82
votes
9 answers

My app was just rejected for using the Ad support framework. Which library is responsible?

This was simply an update that didn't change anything to do with the rejection reason. Here is the response from the resolution center: Reasons Program License Agreement PLA 3.3.12 We found your app uses the iOS Advertising Identifier but does…
user2844801
  • 1,394
  • 2
  • 12
  • 20
80
votes
16 answers

Parse for iOS: Errors when trying to run the app

I've been working with the Parse SDK and I followed the quickstep guide. When I try to run, I get these 8 errors. Any ideas as to why? It looks like something to do with the Facebook part of Parse which I'm not using. Undefined symbols for…
Sarabyte Studios
  • 1,336
  • 2
  • 13
  • 16
77
votes
6 answers

Format Date as "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"

I need to format a date as yyyy-MM-dd'T'HH:mm:ss.SSS'Z' as specified by Parse's REST API for Facebook. I was wondering what the most lightweight solution to this would be.
Garrett
  • 11,451
  • 19
  • 85
  • 126
75
votes
5 answers

Transparent background for modally presented viewcontroller

I am using Parse & ParseUI. I want my PFLoginViewController subclass to have a transparent background. In the future, I want to lay a blurred view over the background. But.... Once the animate-in of the PFLoginViewController is done, the background…
Tycho Pandelaar
  • 7,367
  • 8
  • 44
  • 70
69
votes
5 answers

Parse warning from didReceiveRemoteNotification:fetchCompletionHandler

I am getting an error after adding this code from parse.com: - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler { if…
Arian Faurtosh
  • 17,987
  • 21
  • 77
  • 115
63
votes
9 answers

facebook login issue - canOpenURL: failed for URL: "fbauth2:///" - error: "(null)"

When I click on login with Facebook button, it is opening safari browser and getting closed immediately. Noticed error on the console. App delegate method: func application(app: UIApplication, openURL url: NSURL, options: [String : AnyObject]) ->…
sfbayman
  • 1,067
  • 2
  • 9
  • 22
63
votes
6 answers

How to ENABLE_BITCODE in Xcode 7?

I'm developing with parse.com and I get this problem upgrading to Xcode 7. Some Parse Frameworks are not fully working. I've got this Warning: URGENT: all bitcode will be dropped because …
Kingofmit
  • 2,066
  • 1
  • 17
  • 22
63
votes
1 answer

How do you integrate the Parse Javascript API with Appcelerator and not use undocumented calls?

I would like to create a user from his/her Facebook credentials without using undocumented calls. I do not believe it is possible based on the current implementation of Parse Javascript Library for two known reasons: 1. The current implementation of…
Aaron Saunders
  • 33,180
  • 5
  • 60
  • 80
60
votes
3 answers

What does @NSManaged do?

I have encountered this keyword in various occasions. I kind of know what it's suppose to do. But I really want a better understanding of it. What I noticed about @NSManaged - based not on documentation, but through repeated use: It magically…
Kelvin Lau
  • 6,373
  • 6
  • 34
  • 57
57
votes
18 answers

FBSDK Login Error Code: 308 in Objective-C

I keep getting "Error Domain=com.facebook.sdk.login Code=308 "The operation couldn’t be completed. (com.facebook.sdk.login error 308.)"" upon trying to login with Facebook from my device. My code works on the simulator, but not on an actual…
Jude Michael Murphy
  • 1,198
  • 2
  • 12
  • 23
1
2 3
99 100