4. Code Examples
Objective-C for iOS
PFObject*post = [PFObjectobjectWithClassName:@"Post"];
[post setObject:@"Hello World"forKey:@"title"];
[post setObject:@"I got Parse working on iOS!"forKey:@"content"];
[post saveInBackground];
Java for Android
ParseObjectpost = new ParseObject("Post");
post.put("title", "Hello World");
post.put("content", "I got Parse working on Android!");
post.saveInBackground();
JavaScript
varPost = Parse.Object.extend("Post");
varpost = new Post();
post.set("title", "Hello World");
post.set("content", "I got Parse working on Android!");
post.save(null, { success: function() {}, error: function() {} );
5. Structure
Data Storage
User Authentication
Push Notification
Rest API
iOS SDK
JavaScript SDK
Android SDK
JavaScript SDK
6. Functions
• Data Storage / File Storage
• Push Notification Gateway
• User Management
• Geo Location Support
• Facebook& Twitter
7. Data Storage / File Storage
• SQL-like simple Database (PFObject)
– Schemaless row-column model
– Working in the background
– Spreadsheet-like Data browser on parse.com
– Many ways to retrieve data
• File store (PFFile)
– File storage up to 10MB per file.
– Working in the background and get the progress.
– Examples.
9. Push Notification (PFPush)
• Cross platform
– iOS -> Android / Android ->iOS
– Broadcast to both OS apps.
• Send from
– Apps
– REST API
– Web console on parse.com
11. User Management (PFUser)
• Original Signup and Login
– Email address verification
– Resetting Password
– User Interfaces
• Login with Facebook& Twitter
• Security
– Access Control List (PFACL)
– Role-based Access Control (PFRole)
12. Geo Location (PFGeoPoint)
• Store a geo location data in PFObject
• Query objects
– ordered by distance.
– within miles / km / radians
– within rectangle from south-west to north-east
• Examples