Questions tagged [parse-cloud-code]

This code runs in the Parse Cloud rather than running on a mobile device. For complex apps, sometimes developers just need a bit of logic that isn't running on a mobile device. Cloud Code makes this possible.

The Parse Platform's vision is to let developers build any mobile app without dealing with servers. For complex apps, sometimes developers just need a bit of logic that isn't running on a mobile device. Cloud Code makes this possible.

Cloud Code is easy to use because it's built on the same JavaScript SDK that powers thousands of apps. The only difference is that this code runs in on a Parse Server rather than running on a mobile device. When developers update their Cloud Code, it becomes available to all mobile environments instantly. They don't have to wait for a new release of their application. This lets developers change app behavior on the fly and add new features faster.

1120 questions
0
votes
1 answer

Parse integrating third party services

I'm currently following the tutorial https://parse.com/tutorials/integrating-with-third-party-services In the module, the sendEmail function is set like so: sendEmail: function(params, options) { return Parse.Cloud.httpRequest({ method:…
stefano_cdn
  • 1,362
  • 2
  • 15
  • 29
0
votes
1 answer

PFQueryTableViewController in Swift using Cloud Code function

I'm trying to convert a simple UITableViewController to PFQueryTableViewController in Swift. So far I know I have to initialise my class like that: (source) class TestTableViewController: PFQueryTableViewController { required init(coder aDecoder:…
Claus
  • 5,662
  • 10
  • 77
  • 118
0
votes
2 answers

Need to develop cloud function to specify the query

I'm novice in programming. Right now I'm developing my first app with Swift and Parse (for backend). My app is for the survey to know the confidence rating of the politician. The rating is equal to those who voted YES percentage within last day. I…
user1247867
0
votes
1 answer

Parse Resize Image not Saving Properly

I am trying to resize an image in Parse Cloud Code following the Cloud Modules Guide. The basic idea is as follows: when afterSave is called on a User, check if the small profile pic is null and standard profile pic is not null. If true, get the…
toddg
  • 2,863
  • 2
  • 18
  • 33
0
votes
1 answer

Parse : Multiple queries with an array returning only when finished

trying CloudCode out for the first time and loving it. I am writing an iOS app that passes phone numbers to CloudCode to see if a phone number already has the app. The problem is its firing the success block before the queries finish. I am guessing…
Burf2000
  • 5,001
  • 14
  • 58
  • 117
0
votes
2 answers

Find if Array contains a user

I have a parse background job that contains a simple query.each for one class. This class has 2 Arrays field filled with objects.IDs. Inside this query, for every single object, i need to check if the objects.ID of the first Array are contained in…
Diego
  • 366
  • 3
  • 18
0
votes
2 answers

Parse Cloud Code Ending Prematurely?

I'm writing a job that I want to run every hour in the background on Parse. My database has two tables. The first contains a list of Questions, while the second lists all of the user\question agreement pairs (QuestionAgreements). Originally my plan…
ArtOfWarfare
  • 20,617
  • 19
  • 137
  • 193
0
votes
1 answer

iOS Detect If User Doesn't Interact With Local Notification

I'm building an application where the user must complete a task within 5 minutes of receiving a local notification. If the task is completed then nothing happens but if the task is not completed then I need to run a parse cloud code function. My…
Jack
  • 304
  • 6
  • 19
0
votes
1 answer

Getting the original error codes in cloud code + parse.com

I am new to js. I have a cloud code function to signup a user which works fine except that I could not retrieve the original error message. For example, when I use an existing user name to signUp, I expect {"code":202,"error":"username cooldude6…
0
votes
1 answer

Parse.com getting data from callback URL

I'm currently trying to use an API and for the API, the developer console of that app asks the developer to submit a callback URL. Whenever the user of the app does something, it submits a GET request to the callback URL and I can retrieve data from…
shreyashirday
  • 892
  • 1
  • 10
  • 34
0
votes
1 answer

Parse.com: Remove public read access for array of objects

I've got an iOS app I've written using Parse as the backend. A user can store items in the system. An item has one or more pictures associated with it. By default, a user's items and pictures are accessible only by that user. A user can generate an…
mbm29414
  • 11,558
  • 6
  • 56
  • 87
0
votes
1 answer

Parse afterSave function getting skipped over

so i have a messaging app using parse.com as my backend. When i send a message from the app it saves it on Parse.com to a class called "NewMessages". Then in my cloud code i have an afterSave function dedicated to this class so that when a new…
ian
  • 1,002
  • 2
  • 12
  • 29
0
votes
0 answers

Or conditions on multiple fields in parse javascript query

While I build the query in cloud code, I have or conditions on fields as well as other conditions on other fields. For an instance, I'd like to get the records which has specified zip code or empty value. Query would be as following if I use…
Pei
  • 11,452
  • 5
  • 41
  • 45
0
votes
1 answer

only first object getting saved in javascript for loop

On parse.com, Im trying to save an object which includes: a message body, the senders name, the senders id, and the recipients name to a class called "Messages." The object is getting saved correctly, however, when i try to use a for loop in…
ian
  • 1,002
  • 2
  • 12
  • 29
0
votes
1 answer

Decrease Parse Push Requests with Array

I'm currently using a Parse Cloud Code Background Job to notify users when a new missing pet is found in their specified radius. For example Pet XYZ is gone missing all users who have Push Enabled and are within their specified radius will be…
Patrick
  • 45
  • 1
  • 1
  • 7