parse-server

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

Parse Server and mongodb issue

假如想象 提交于 2020-06-27 10:30:09
问题 I'm trying to setup a local install of a parse server for my express app. Here is what I have done: npm install -g parse-server mongodb-runner Then: mongodb-runner start That triggered this error: Starting a MongoDB deployment to test against...{ HTTPError: Response code 403 (Forbidden) at EventEmitter.ee.on.res (/usr/local/lib/node_modules/mongodb-runner/node_modules/got/index.js:250:24) at EventEmitter.emit (events.js:182:13) at Immediate.setImmediate (/usr/local/lib/node_modules/mongodb

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 can I customize a Push-Notification?

耗尽温柔 提交于 2020-03-26 04:02:32
问题 I am working on a project where I want to make Push notifications work, on Parse-Server (Heroku), with an iOS app. This is the code I use on the server side to generate a PUSH: const pushQuery = new Parse.Query(Parse.Installation); pushQuery.equalTo('deviceType', 'ios'); Parse.Push.send({ where: pushQuery, // Set our Installation query data: {alert: "ABCXYZ"} }, { useMasterKey: true, success: function() {}, error: function(error) { throw "Got an error " + error.code + " : " + error.message; }

How to fix “Error: XMLHttpRequest failed” on React Native with Parse-Server backend

妖精的绣舞 提交于 2020-03-25 13:42:36
问题 Today I have a plan to convert an iOS app (Swift) and Android (Java+Kotlin) to React Native . This app show hospital as Marker on (Google)Maps based on user location. My backend is Parser-Server (now is ParsePlatform ) The function bellow query the data (class) from Parse backend: async getHospitalNearbyUser() { const { userLocation, region } = this.state if ((userLocation.lat !== null) && (userLocation.lng !== null)) { const lng = userLocation.lng const lat = userLocation.lat const radius =

Parse Server Security [closed]

南笙酒味 提交于 2020-01-31 18:14:06
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . I am running a clean Heroku & MLab installation of the Parse Server (https://github.com/ParsePlatform/parse-server-example), which I am controlling using the Parse Server Dashboard (https://github.com/ParsePlatform/parse-dashboard). I can make Rest API calls & create new classes.

Parse Server Security [closed]

半腔热情 提交于 2020-01-31 18:13:54
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . I am running a clean Heroku & MLab installation of the Parse Server (https://github.com/ParsePlatform/parse-server-example), which I am controlling using the Parse Server Dashboard (https://github.com/ParsePlatform/parse-dashboard). I can make Rest API calls & create new classes.

Parse Server Cloud Code Setting ACL

独自空忆成欢 提交于 2020-01-23 03:43:05
问题 I try to set the ACLs with the code below, but in my mongolab database I do not see the ACL settings. Am I doing something wrong in the code? I could not find any good tutorial for the cloud code examples. Parse.Cloud.afterSave('_User', function(req) { var user = req.user; var acl = new Parse.ACL(); acl.setReadAccess(req.user, true); acl.setWriteAccess(req.user, true); user.setACL(acl); user.save(); }); Parse.Cloud.afterSave('userSetting', function(req) { var userSet = req.object; var acl =

Where files are allocated in Parse Server?

丶灬走出姿态 提交于 2020-01-07 04:35:16
问题 I'm implementing an instance of Parse Server, I want know where the Parse Server Allocated the files ? 回答1: Depends on the operating system and type of installation you used. If installed on a linux/unix using the global install npm install -g parse-server mongodb-runner then your parse-server files will normally be under usr/lib/node_modules/parse-server . ( may differ from linux versions ) be careful when editing these files for hot hacks or modifications. If you later choose to upgrade

Parse server migration to IBM bluemix

旧城冷巷雨未停 提交于 2020-01-04 07:33:06
问题 I am trying to run parse server with nodejs in ibm bluemix but it is throwing an error in parse server PromiseRouter file. PromiseRouter.js:48 throw _iteratorError; ^ ReferenceError: Symbol is not defined How can i get this resolved My App .js var express = require('express'); var ParseServer = require('parse-server').ParseServer; var app = express(); var port = process.env.PORT || 1337; // Specify the connection string for your mongodb database // and the location to your Parse cloud code