Questions tagged [realm-mobile-platform]

The Realm Mobile Platform delivers automatic and seamless realtime data sync and powerful event handling between server and devices. Built on the cross-platform Realm Mobile Database, it supports both iOS and Android, and the Realm Object Server is ready to run on your servers or on your favorite cloud.

Questions about Realm Mobile Platform, Realm Object Server, or data synchronization using Realm should use this tag. Questions about the Realm Mobile Database should use the tag instead.

617 questions
52
votes
3 answers

Do I understand MongoDB Realm correctly?

There are three components: Realm Database: Local Storage & Persistence Realm Sync: Sync Realm Databases between clients and the Mongo DB Atlas Mongo DB Atlas: A Cloud Database. You can use each separately or together. So you can Just store…
Iskeraet
  • 731
  • 1
  • 6
  • 12
19
votes
2 answers

Realm - Can't create object with existing primary key value

I have a object Person with many dogs. App has separate page where it shows just dogs and other page where it shows person's dogs My model is as follows class Person: Object { dynamic var id = 0 let dogs= List() override…
Deekshith Bellare
  • 725
  • 2
  • 6
  • 19
19
votes
2 answers

How to deploy a Realm Object Server

I'm looking into using the new Realm Mobile Platform for a project of mine. I've gone through the guides and was able to get it up and running locally no problem. My question is, what's the best way to deploy the Realm Object Server so it can be run…
chetem
  • 502
  • 3
  • 10
13
votes
5 answers

realm android delete all data

mRealm.beginTransaction(); mRealm.clear(AboutItemRealm.class); mRealm.clear(AgendaItemRealm.class); mRealm.clear(AttendeesItemRealm.class); mRealm.clear(DocumentsItemRealm.class); mRealm.clear(FAQsItemRealm.class); mRealm.clear(GalleryItemRealm.class…
user7866616
10
votes
2 answers

how to store java list in realm android database

How we can store java list in realm android database. I try to store it by using setter method present in my model, but it doesn't work and I get "Each element of 'value' must be a valid managed object" in exception message. public void…
Anil
  • 255
  • 1
  • 3
  • 14
9
votes
0 answers

How to Convert Realm Cloud Anonymous User to Real User

If I create an anonymous user on Realm Cloud in Swift like this: let credentials = SyncCredentials.anonymous() SyncUser.logIn(with: credentials, server: Constants.authURL) { user, error in //... } A user is created with a random Provider ID like…
Clifton Labrum
  • 13,053
  • 9
  • 65
  • 128
8
votes
4 answers

Realm error - _constructor must be of type 'function', got (undefined)

I am trying to setup Realm DB locally with my react native application but there seems to be an error that I cannot figure out a reason for. I have followed the documentation and the guide here. My Code. import Realm from 'realm'; export const…
8
votes
2 answers

Cannot modify managed objects outside of a write transaction ( Realm + Android )

I have implement the following method to update UserProfile from realm db. override fun updateCurrentUser(userProfile: UserProfile, successAction: () -> Unit) { val realm = Realm.getDefaultInstance() realm.executeTransactionAsync( …
kokilayaa
  • 579
  • 4
  • 7
  • 19
8
votes
1 answer

Best strategy share data between users on Realm Object Server?

If I want to share some data between users, what is the best strategy with Realm Object Server. For instance 5 users want to share their favorites movies. Everybody share 3 movies and they should see a list of 15 movies.
8
votes
1 answer

Share realm between different users on Realm Object Server?

Is there currently a way to allow multiple users to access the same Realm? Right now the only way I could find is to use an 'app account' instead of an user account, as proposed in another question. thanks!
Diogo Andre
  • 658
  • 5
  • 17
6
votes
1 answer

Realm database - field of type x is not supported

im working with realm in android and im getting this error message: error: Field "items" of type "java.util.List" is not supported. it's at this line: private List items; here is the class: public class Article extends RealmObject…
Lucas Navarro
  • 103
  • 1
  • 6
6
votes
2 answers

How to view realm db created by react-native in ios stimulator

I want to access realm database created by my ios app that I created using react-native. Its easier to use adb pull for android but for ios I am not getting much idea. There are some links like - realm-file in ios app to find app uuid for above…
6
votes
1 answer

Property of type 'array' has unknown object type in realm object server

I am trying to use Realm mobile platform where in i am calling external web service from realm object server and creating objects of different entities. after creating schema when i am dumping data into it i am getting following error Schema…
Hunt
  • 8,215
  • 28
  • 116
  • 256
6
votes
1 answer

realm mobile platform, how to connect while offline?

the new realm mobile platform is advertised with offline support, however most tutorials does not show how that works in the examples... for example, in their todo app example this is the code used to connect to the server database…
Hadi
  • 705
  • 8
  • 23
6
votes
2 answers

With Realm, should I use a List object or Results object as the data source for a UITableView?

There are at least 2 main collection types used in Realm: List Results The relevant description from the documentation on a Results object says: Results is an auto-updating container type in Realm returned from object queries. Because I want…
David Weiss
  • 1,842
  • 3
  • 17
  • 25
1
2 3
41 42