parse-server

iOS Push Notification: cannot find vaild connection

为君一笑 提交于 2019-12-06 00:35:27
问题 I'm trying to setup push notifications on my local parse server. I get this error when trying to send a push: parse-server-push-adapter APNS cannot find vaild connection for 9a86...21 (The error repeats for every installation device token.) Any ideas? My server code: var api = new ParseServer({ databaseURI: databaseUri || 'mongodb://localhost:27017/dev', cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js', appId: process.env.APP_ID || 'myAppId', masterKey: process.env.MASTER

How to keep client secret for OAuth2 login to Parse server secure?

流过昼夜 提交于 2019-12-05 18:54:06
I want to enable users in my macos app to be able to securely login to my Parse Server using third-party Oauth2 login. I have been searching for the best approach to do this, but still have some problems. If I understand correctly, logging in requires: Enable oauth in my Parse server config file (for twitter, google etc). Get the access token to the provider (e.g. twitter) using a client side OAuth login. I am currently using OAuthSwift . Login to Parse using the provided access token (from 2) as suggested in the swift example provided here , i.e. [[PFUser logInWithAuthTypeInBackground

Swift Delete multiple objects at once Parse server

微笑、不失礼 提交于 2019-12-05 14:41:28
I query to the server following let query = PFQuery(className: "posts") query.whereKey("uuid", equalTo: Ncell.uuidLbl.text!) query.findObjectsInBackground { (objects:[PFObject]?, error:Error?) in if error == nil { for object in objects! { object.deleteInBackground(block: { (success:Bool, error:Error?) in if success{ } }) } } } Rather than using a loop and deleting each object individually, I want to know if it would be possible to delete all the found objects at once to save on requests. I want to know if it would be possible to delete all the found objects at once Yes in the Parse iOS SDK to

com.parse.ParseObject cannot be cast to

耗尽温柔 提交于 2019-12-05 09:53:43
I am developing application which having Parse Platform . To fetch data I am calling ParseCloud.callFunctionInBackground function. I have registered the Parse and its sub class into the Application class like below : public class App extends Application { @Override public void onCreate(){ super.onCreate(); Parse.setLogLevel(Parse.LOG_LEVEL_VERBOSE); OkHttpClient.Builder builder = new OkHttpClient.Builder(); HttpLoggingInterceptor httpLoggingInterceptor = new HttpLoggingInterceptor(); httpLoggingInterceptor.setLevel(HttpLoggingInterceptor.Level.BODY); builder.networkInterceptors().add

How to connect my Swift app to my Parse Server?

六眼飞鱼酱① 提交于 2019-12-04 22:52:54
I'm working on connecting my Parse app to my Node.js Parse Server with the Swift language. In the documentation of Parse, I can see this code : [Parse initializeWithConfiguration:[ParseClientConfiguration configurationWithBlock:^(id<ParseMutableClientConfiguration> configuration) { ... configuration.applicationId = @"YOUR_APP_ID"; configuration.clientKey = @"YOUR_APP_CLIENT_KEY"; configuration.server = @"http://localhost:1337/parse"; ... }]]; And since I use the Swift language, here is my configuration until now : // Initialize Parse. Parse.setApplicationId("APP_ID", clientKey: "CLIENT_KEY")

Parse Server Cloud Code Setting ACL

北城以北 提交于 2019-12-04 19:18:53
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 = new Parse.ACL(); acl.setReadAccess(Parse.User.current().id, true); acl.setWriteAccess(Parse.User.current

How to move cloud code from parse.com to heroku

扶醉桌前 提交于 2019-12-04 13:28:44
I have moved parse sever from parse.com to heroku. Everything is working fine except cloud code('cloud/main.js' file). I have replaced "main.js" of parse.com with "main.js" of parse server code and deployed on heroku, but it is not working. Getting following error when I make request from my mobile app {"code":1,"message":"Internal server error."} (Code: 1, Version: x.xx.x) Any idea? Note: I've followed following link for migrating parse server https://learnappmaking.com/how-to-migrate-parse-app-parse-server-heroku-mongolab/ Migrating cloud code can range in difficulty depending on how

Notice: Undefined index - Parse Server < WordPress Plugin [closed]

随声附和 提交于 2019-12-04 06:57:54
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I'm making a plugin to connect WordPress to a Parse Server instance. When I tried to excute the plugin it threw the error below: Notice: Undefined index: wp-parse-api-page in .../wp-content/plugins/WP-Plugin/includes/class-wp-parse-api-admin-settings.php on line 31 Here is the code... Line 31 $_GET['wp-parse-api

iOS Push Notification: cannot find vaild connection

隐身守侯 提交于 2019-12-04 05:56:21
I'm trying to setup push notifications on my local parse server. I get this error when trying to send a push: parse-server-push-adapter APNS cannot find vaild connection for 9a86...21 (The error repeats for every installation device token.) Any ideas? My server code: var api = new ParseServer({ databaseURI: databaseUri || 'mongodb://localhost:27017/dev', cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js', appId: process.env.APP_ID || 'myAppId', masterKey: process.env.MASTER_KEY || '', serverURL: process.env.SERVER_URL || 'http://localhost:1337/parse', liveQuery: { classNames: [

Parse-server cloud code function 'Cannot POST'

試著忘記壹切 提交于 2019-12-04 04:33:20
Most parts of my migration to open source parse-server are successful, with my data correctly stored, accessible. I am however having problems with cloud code, specifically with running simple curl tests. The initial parse-server installation includes a sample main.js file that contains a hello world function My own parse installation is hosted at '/parse' so URLs use this as the root The following is a simple request test curl -X POST \ -H "X-Parse-Application-Id: myAppId" \ -H "X-Parse-REST-API-Key:myRESTKey" \ -H "Content-Type: application/json" \ -d '{}' \ http://localhost:1337/parse/1