parse-server

PFUser that created object cannot delete object despite ACL writing access?

江枫思渺然 提交于 2019-12-08 05:13:41
问题 I want to allow users to remove an object from a parse-server database that they created (at some later, desired time). The object is created in the DB fine, and the .deleteInBackground() command works fine to delete object if I, manually, first set the ACL for that object to allow public writing. As a default, the user that created the object is allowed to read AND write to it, yet (despite being logged on) the below function returns an error to the logs in xcode because the user doesn't

REST query to get all roles for particular user from parse server

限于喜欢 提交于 2019-12-08 02:07:53
问题 How to create a REST query to get all roles assigned to a user? As this is many to many relation in the opposite direction the regular $relatedTo operator seems to be not enough... 回答1: finally I found the solution which seems to be much easier than I was afraid of :) As I found similar questions on SO and github I hope it will help others. the curl query to get all the roles directly assigned to a user is: curl -X GET \ -H "X-Parse-Application-Id: ${APPLICATION_ID}" \ -H "X-Parse-REST-API

android :geo Location using intent

一世执手 提交于 2019-12-08 02:07:44
问题 I have a ListView and when i click a single item it goes to single item view . in each single item view page there is a location button .I need to go to google map when click the location button longtitute and latitudes are saved in database like this . I want to call this dynamically in EACH CELL OF THE COLUMN , data is stored like this, the data is stored as object inside parse database, not as strings {"lat":25.1250241,"lng":55.3752069} anyone knows please tell how can i get data from this

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

旧街凉风 提交于 2019-12-07 16:27:20
问题 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)

com.parse.ParseObject cannot be cast to

允我心安 提交于 2019-12-07 07:58:59
问题 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();

Multiple apps in a single parse server

断了今生、忘了曾经 提交于 2019-12-07 01:48:38
问题 I worked all week to migrate my apps hosted on parse.com to parse server, managed to make everything work perfectly, the only problem is to get it to run multiple apps on a single hardware, without my having to allocate a server app for that it has, it would become expensive. I read this discussion about it, and on this basis, follow the following solution: var app1 = new ParseServer({ databaseURI: databaseUri || 'mongodb://localhost:27017/dev', cloud: process.env.CLOUD_CODE_MAIN || __dirname

How to connect my Swift app to my Parse Server?

限于喜欢 提交于 2019-12-06 17:16:37
问题 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

Parse server dashboard login

℡╲_俬逩灬. 提交于 2019-12-06 12:38:28
问题 So, I am new to Android Studio. I'm following an online course step by step. I'm using ParseServer on AWS. I've managed to get my appId, etc. and can connect with a Java SSH Client directly from my browser. My app can successfully store information in the ParseServer, but I can't access the parse dashboard. When I try to it asks me to enter my username and password -- which I don't have. I've found a file (in bitnami terminal) and I think that I should maybe make myself an account in here? #

REST query to get all roles for particular user from parse server

自作多情 提交于 2019-12-06 12:27:26
How to create a REST query to get all roles assigned to a user? As this is many to many relation in the opposite direction the regular $relatedTo operator seems to be not enough... finally I found the solution which seems to be much easier than I was afraid of :) As I found similar questions on SO and github I hope it will help others. the curl query to get all the roles directly assigned to a user is: curl -X GET \ -H "X-Parse-Application-Id: ${APPLICATION_ID}" \ -H "X-Parse-REST-API-Key: ${REST_API_KEY}" \ https://parseapi.back4app.com/roles \ --data-urlencode \ 'where={"users":{"__type":

How to move cloud code from parse.com to heroku

痴心易碎 提交于 2019-12-06 06:25:55
问题 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