parse-platform

in Swift, what does this specific syntax mean?

此生再无相见时 提交于 2020-01-21 04:47:06
问题 I've been attempting to follow some iOS Swift tutorials for connecting to Parse.com codementor.io tutorial: loginViewController.fields = .UsernameAndPassword | .LogInButton | .PasswordForgotten | .SignUpButton | .Facebook | .Twitter makeschool tutorial loginViewController.fields = [.UsernameAndPassword, .LogInButton, .SignUpButton, .PasswordForgotten, .Facebook] I assume the former is Switch 1.x, and thelatter is Swift 2. From context they appear to be doing the same thing, but I haven't yet

error setting up push notification using parse.com and android studio

只谈情不闲聊 提交于 2020-01-20 08:43:44
问题 following the parse.com tutorial for setting up push notification on android (https://parse.com/tutorials/android-push-notifications). ide is android studio 0.8.9 on mac os maverick. errors -> Cannot use GCM for push because the app manifest is missing some required declarations Also, please make sure that these services and broadcast receivers are declared as children of the <application> element logcat output -> 10-13 23:12:10.430 4942-4962/com.pixtas.sup E/com.parse.ManifestInfo﹕ Cannot

Subclassing PFObject in Swift

試著忘記壹切 提交于 2020-01-19 05:16:07
问题 The Parse documentation for adding properties and methods on PFObject subclasses conveniently skips the Swift syntax in their sample code listing just the Objective-C syntax: https://parse.com/docs/ios_guide#subclasses-properties/iOS // Armor.h @interface Armor : PFObject<PFSubclassing> + (NSString *)parseClassName; @property (retain) NSString *displayName; @end // Armor.m @dynamic displayName; Has anyone figured out a work around for Swift's lack of dynamic synthesizers in order to implement

The verification Procedure and making new users logic, parse.com

◇◆丶佛笑我妖孽 提交于 2020-01-17 08:03:51
问题 I am stuck at how to think when to create new anonymous users. This is how my application is setup right now. I got three ViewControllers. 1) GetPhoneController , 2) VerificationController , 3) ViewController GetPhoneController: is the first view where, IF the user that opened the application has no user stored meaning [PFUser currentUser]; is equal to NULL then this view will be run otherwise ViewController will execute ( the check is done in AppDelegate ). This view will just get the user's

Requesting Function Response in another function

我的梦境 提交于 2020-01-17 06:32:08
问题 I have those two functions where i call "http" from "Count" the "http" return promise. I want to use the return value of "http" in "Count". What I receive now is Undefined !!! What I'm missing ? Count Function : Parse.Cloud.define('count', function(request, response) { var query = new Parse.Query('MyS'); query.equalTo("Notify", true); query.notEqualTo ("MainEventCode", '5'); query.find({ success: function(results) { Parse.Cloud.run('http', {params : results}).then( function(httpResponse) {

how to use local datastore to save and query data with parse and swift

无人久伴 提交于 2020-01-17 05:32:06
问题 In my app. There will be user list and message list as my code below message list code (load the list from parse) @IBOutlet var messageTableView: UITableView! var messageArray:[String] = ["Lope"] override func viewDidLoad() { super.viewDidLoad() retrieveMessages() } func retrieveMessages() { var query = PFQuery(className:"Messages") var user = PFUser.currentUser() query.whereKey("user", equalTo:user.objectId) query.findObjectsInBackgroundWithBlock { [weak self] (objects:[AnyObject]?, error

Saving objects in query with Parse.com limited to first rows?

醉酒当歌 提交于 2020-01-17 05:23:12
问题 My problem is suppossed to be very common. I have a bunch of users and want to update their ranking position according to their scoring. So I've created a CloudCode function that I call to update ther positions. I make a query and order its elements by their "scoring". After that I obtain each element one by one and I update their "position" value. The code is pretty simple: Parse.Cloud.define("update_ranking", function(request, response) { query = new Parse.Query("Scoring"); query.descending

How to deliver a push notification to user friends

怎甘沉沦 提交于 2020-01-17 04:54:31
问题 Every user who installs my iOS App I am creating a Parse User. In the Parse User class I have a device Name which is a pointer to Install class and an array of Parse Users. PFUser *newUser = [PFUser user]; newUser.username = [NSString stringWithFormat:@"%@ %@",[user first_name],[user last_name]]; newUser.password = [user objectID]; [newUser setObject:[PFInstallation currentInstallation] forKey:@"device"]; newUser[@"friendFBIDs"] = _allMyFBFriends; [newUser signUpInBackgroundWithBlock:^(BOOL

Inserting html code within a jquery function

我只是一个虾纸丫 提交于 2020-01-17 04:17:10
问题 I am trying to insert the following: <div class="modal fade" id="modalForwardMail" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title" id="myModalLabel">Forward this Mail</h4> </div> <div class="modal-body"><center> <form name="contactform"

How to resolve Uncaught Error: Can't serialize an unsaved Parse.Object error message?

匆匆过客 提交于 2020-01-17 02:50:15
问题 Using parse.com and JavaScript SDK. I've searched, but cannot find a good answer for this. This function works when I use just use current user. However what it should do is use the value stored in the variable friendRequest to query results that already exist in parse. The FriendRequest variable is populated once the user clicks on one of the images being displayed on the page within the div id container I get the following error and I'm not sure how to fix it? Is it because FriendRequest is