back4app

Using setTimeout() to Schedule pushes

拜拜、爱过 提交于 2020-07-09 14:47:06
问题 Since Scheduled push is not available on Parse , I'm using setTimeout() to schedule pushes. I'm using back4app. // I call this cloud code Parse.Cloud.define("pushMultiple",async (request) => { //Using set timeout to send out a push 1 hour later setTimeout(pushout,100000); }); //The function to send Notificaiton const pushout = () => { Parse.Push.send({ channels: [ "t1g.com"], data: {alert: "The Giants won against the Mets 2-3."} },{ useMasterKey: true }); } My code works fine. So my question

Using setTimeout() to Schedule pushes

ε祈祈猫儿з 提交于 2020-07-09 14:45:11
问题 Since Scheduled push is not available on Parse , I'm using setTimeout() to schedule pushes. I'm using back4app. // I call this cloud code Parse.Cloud.define("pushMultiple",async (request) => { //Using set timeout to send out a push 1 hour later setTimeout(pushout,100000); }); //The function to send Notificaiton const pushout = () => { Parse.Push.send({ channels: [ "t1g.com"], data: {alert: "The Giants won against the Mets 2-3."} },{ useMasterKey: true }); } My code works fine. So my question

Schedule Push notification on Parse

≡放荡痞女 提交于 2020-06-17 02:11:13
问题 I was wondering if Schedule Push is available on Parse Server? (I'm using Back4App) Here is my cloud code: Parse.Cloud.define("pushMultiple",async (request) => { //Getting Current Date instance var d = new Date(); //Where I live Current Hour is 14, so setting it to 15 d.setHours(15); //Sending push to a specific device return Parse.Push.send({ push_time: d, channels: [ "t1g.com"], data: {alert: "The Giants won against the Mets 2-3."} },{ useMasterKey: true }); }); But the code does not seem

How to update the user object in back4app?

谁说我不能喝 提交于 2019-12-31 07:15:11
问题 I use Node.js and back4app.com I try to update the user object. Therefore I have read a lot and found this promissing documentation: let progressId = "xyz"; let userId = "12354"; //aka objectId const User = new Parse.User(); const query = new Parse.Query(User); // Finds the user by its ID query.get(userId).then((user) => { // Updates the data we want user.set('progressId', progressId); // Saves the user with the updated data user.save() .then((response) => { console.log('Updated user',

Retrieving an array from Parse.com

三世轮回 提交于 2019-12-25 08:19:18
问题 I am trying to download an array from Back4Apps.com (Parse.com equivalent). The below displays no errors, but when it gets to the line "downloadQuery.findObjectsInBackground { (objects, error) in", it simply skips over the rest of the code to the end of the function. I have tested the "username" and it seems to be correct. I am certain the class and subClass names are correct. The parse parameters are correct and I already have many other parse functions working. Any suggestions where to look

how to get file from parse.com in android?

家住魔仙堡 提交于 2019-12-24 18:55:09
问题 here is my db structure of purchased_item and here is my image table i want to get file FFNglxekCv ParseQuery<ParseObject> query = ParseQuery.getQuery(KEY_MASTER_PURCHASED_ITEM); ParseUser currentUser = ParseUser.getCurrentUser(); user.setObjectId(currentUser.getObjectId());*/ query.whereEqualTo(KEY_PURCHASED_BY, currentUser); query.findInBackground(new FindCallback<ParseObject>() { public void done(List<ParseObject> parseObjectList, ParseException e) { hideProgressDialog(); if (e == null) {

How can I connect to a hosted Parse-Server over Parse4J?

六眼飞鱼酱① 提交于 2019-12-12 17:21:41
问题 I would like to be able to use the Parse4J library (https://github.com/thiagolocatelli/parse4j/) to connect to a hosted Parse-Server. I want to use https://parseapi.back4app.com as an API endpoint. They provide a solid Parse hosting solution. Code: import org.parse4j.Parse; import org.parse4j.ParseException; import org.parse4j.ParseObject; import org.parse4j.ParseQuery; import org.parse4j.callback.GetCallback; /** * Created by Martin on 3/27/2017. */ public class Parse4JStarter { public

How to get the sessionToken for currentUser?

↘锁芯ラ 提交于 2019-12-11 07:49:38
问题 I work on a web app hosted on heroku. As database I try to use back4app. With help of the back4app documention I have realized the log in. Since two days I try to get the session to work with it. Therefore I have read a lot of blogs, articels and of course the parse documentation. But I'm not able to get it to work. I hope, you will find my problem. Following code is my lastest attempt: const express = require('express'); const server = express(); const path = require('path'); const

Error Domain=NSURLErrorDomain Code=403 “The operation couldn’t be completed. (NSURLErrorDomain error 403.)”

荒凉一梦 提交于 2019-12-08 10:50:17
问题 I am using sdwebimage and back4app backend . We are not able to load image from back4app. [immg1 sd_setImageWithURL:url11 placeholderImage:[UIImage imageNamed:@"pro"] completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) { if (error) { NSLog(@"B4A_Error: %@", error.localizedDescription); NSLog(@"B4A_Error URL: %@", imageURL.absoluteString); } else { NSLog (@"B4A_Success"); [immg1 setNeedsDisplay]; } }]; // [immg1 setImageWithURL:url11

How to update the user object in back4app?

扶醉桌前 提交于 2019-12-02 12:18:23
I use Node.js and back4app.com I try to update the user object. Therefore I have read a lot and found this promissing documentation : let progressId = "xyz"; let userId = "12354"; //aka objectId const User = new Parse.User(); const query = new Parse.Query(User); // Finds the user by its ID query.get(userId).then((user) => { // Updates the data we want user.set('progressId', progressId); // Saves the user with the updated data user.save() .then((response) => { console.log('Updated user', response); }) .catch((error) => { console.error('Error while updating user', error); }); }); But there also