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
2
votes
0 answers

saving stripe customer details with Parse's Cloud Code

I am using Parse as my backend and trying to integrate Stripe to allow customers to save their payment information for future payments. Customers are not being saved to Stripe. I think it has to do with my URL on my Cloud Code ("https://" + "REMOVED…
2
votes
1 answer

Setting up Stripe Cloud Module in Parse

apologies beforehand for my naïveté. I started learning Obj. C about six weeks ago so I'm very new to iOS development, a lot of things are not very obvious to me still. I am building my second app using Parse. This time it is an e-com app so would…
2
votes
1 answer

Parse.com: query.each executes in parrallel, reaches limit

I am running a batch job and I would like them to be run serially for each query result The problem is that it seems that query.each executes everything in parrallel How can I change my code to have everything execute…
Stephane Maarek
  • 5,202
  • 9
  • 46
  • 87
2
votes
1 answer

parse.com inherited ACL + roles - afterSave or beforeSave, tricky scenario

Here's what I am trying to achieve but somehow I am stuck and I am not sure what's the proper approach, I cannot find any good examples of such case so I am seeking your help. Each registered user can add new object to class "List". Once the new…
lokers
  • 2,106
  • 2
  • 18
  • 19
2
votes
0 answers

Cancel Parse cloud function callback

This question is simple, but I didn't find it already asked ... Is there a way to cancel a Parse cloud function callback ?? I'm developing an app, where it would be great to ignore (or even better, not receive at all) the callback of a cloud…
2
votes
3 answers

Cant't deploy after update new version parseconsole.exe

today I've updated my parseconsole.exe and I can't deploy my code when yesterday I could. I've try to do another develop but the same error happens, this is the trace: > parse new WebContent Creating directory…
gogoru
  • 376
  • 2
  • 19
2
votes
1 answer

Parse Error: "Can't modify username in the before save trigger" and "Validation Failed"

I am trying to save a user (pull some data from Facebook and add it to some columns, that have nothing to do with the Parse username) in Parse's beforeSave trigger in the cloud, but I'm getting the following error at my iOS app while…
Can Poyrazoğlu
  • 33,241
  • 48
  • 191
  • 389
2
votes
2 answers

Possible to get previous value of object in Parse Cloud Code AfterSave?

I have an AfterSave function that updates something else based on the previous value of the object that was just saved. Simply knowing that the object has changed with object.existed() is not enough. Is there any way to get the previous value of an…
lschlessinger
  • 1,934
  • 3
  • 25
  • 47
2
votes
1 answer

Parse cloud code - Removing a pointer from array of pointers

I am using Parse cloud code to clear all pointers to a "Tag" object when the tag is deleted. "beforeDelete" is called and I don't get any errors + The console prints the correct "Song" objects" that has the pointer to the deleted "Tag". But the…
shannoga
  • 19,649
  • 20
  • 104
  • 169
2
votes
1 answer

Parse.com : More querys from different tables with one API request

I wanna say if there's a solution to make only one request to receive data from different tables. For example: I have table "books", "pencils" and another. I wanna receive only the last row of these tables. With ParseObject i can do a List of…
2
votes
3 answers

How to send Push Notifications with Parse.com Cloudcode

I want to send a Push Notification with Cloudcode on Parse.com. The push notification should be sent to all android devices that are subscribed to a specific channel and trigger a service.
Janusz
  • 187,060
  • 113
  • 301
  • 369
2
votes
1 answer

How to send a collapsible push notification using Parse.com's cloud code

I am using Parse.com to send push notifications via Cloud Code. These notifications are "send to sync" so I want them to be collapsible. Collapsible means that if a device is turned off or otherwise not receiving push notifications, that these…
2
votes
1 answer

Changing values of Parse column using Parse Code Cloud Javascript function

So its my first time writing Javascript so please bear with me. I wrote this function in order to query a class in my Parse.com application, and then after querying I want to set one of the columns (of type Boolean) to true. I set up a test class…
RJiryes
  • 951
  • 10
  • 25
2
votes
1 answer

Parse.com Saving in afterSave

In my afterSave on a certain Class in Parse Cloud Code, I'm setting the appropriate ACL and then saving the same object again. I have a Push notification going on in that afterSave method, but doing save() in afterSave I think is causing the…
John Doe
  • 1,005
  • 2
  • 8
  • 23
1
vote
1 answer

Service Extension not called for Parse Cloud Code push notification

I am trying to use Cloud Code to send push notifications from Parse Server 4.2.0. I am switching from Firebase Cloud Messaging and had implemented a service extension that changed the notification title and body based on the notification…