12478

Store User Settings in Parse Cloud

What is the recommended way to store user settings in Parse Cloud?

I've two approaches of which I don't know which one is best suitable for a scalable app or if there is a better way of doing this.

The first approach is to create a class with all settings for each user and have a relation between the user and the setting.

The other approach is to simply store the settings for each user in a user object. I feel the second approach is the better one.

I've had a look at PFInstallation but not entirely sure if that can be used to set User Settings or if the use case is for push notifications only.

Answer1:

Both of your solutions:

<ol> <li>an associated class to hold user settings</li> <li>store attributes directly in the user class </li> </ol>

Are valid.

The advantage of #1 is that it will be easier to secure the settings. In the case of #1, you can create an ACL when you create each user's setting object that will allow only the user associated with that record to read, edit or delete the settings object.

In the case of #2, if any of the fields are sensitive, then you'll need to explicitly protect those fields using the userSensitiveFields config key to ensure that they are not returned when user records are queried.

Recommend

  • Parse Push Notifications Testing PFInstallation Not Working
  • iOS App Extension has PFUser currentUser set to nil
  • Batching in py2neo
  • How do we set maximum_bad_records when loading a Bigquery table from dataflow?
  • Group variable in cobol
  • R h2o.glm - issue with max_active_predictors
  • Checking if the Faye server exists before running it for my Rails app
  • Why doesn't a local variable live long enough for thread::scoped?
  • Is there any way to call saveCurrentTurnWithMatchData without sending a push notification?
  • Angular Bootstrap Carousel Slide Transition not working correctly
  • how to change api_token column in token guard
  • Silverlight DependencyProperty.SetCurrentValue Equivalent
  • WPF ICommand CanExecute(): RaiseCanExecuteChanged() or automatic handling via DispatchTimer?
  • How solve “Qt: Untested Windows version 10.0 detected!”
  • How can I speed up CURL tasks?
  • Moving Android View and preventing onDraw to be called over and over again
  • Visual Studio 2010 debugger build correctly - compiler pdb and linker pdb not in synch?
  • How to get Eclipse Oxygen to run on Java 9
  • WPF - CanExecute dosn't fire when raising Commands from a UserControl
  • MailKit: The IMAP server replied to the 'EXAMINE' command with a 'BAD' response
  • Javascript Callbacks with Object constructor
  • How can I use Kendo UI with Razor?
  • 'TypeError' while using NSGA2 to solve Multi-objective prob. from pyopt-sparse in OpenMDAO
  • How to make Safari send if-modified-since header?
  • XCode can't find symbols for a specific iOS library/framework project
  • How to pass list parameters for each object using Spring MVC?
  • AT Commands to Send SMS not working in Windows 8.1
  • Rails 2: use form_for to build a form covering multiple objects of the same class
  • How get height of the a view with gone visibility and height defined as wrap_content in xml?
  • How do I configure my settings file to work with unit tests?
  • Java static initializers and reflection
  • Setting background image for body element in xhtml (for different monitors and resolutions)
  • Linking SubReports Without LinkChild/LinkMaster
  • Is it possible to post an object from jquery to bottle.py?
  • unknown Exception android
  • JaxB to read class hierarchy
  • Observable and ngFor in Angular 2
  • Unable to use reactive element in my shiny app
  • How to push additional view controllers onto NavigationController but keep the TabBar?