Questions tagged [realm]

2 votes
2 replies
UI doesn't update until tap on the screen when setState is called inside a realm listener callback
UPDATED DESCRIPTION I have a listener on a Realm Object for getting updates. When there is an update on the server (or in the client) the funct...
0 votes
1 replies
What does a swift model class look like if I follow MVC and persist data by RealmSwift?
I am new to Swift and I'm developing a To-do app just for practicing. In this app, the data is persisted using RealmSwift and I tried to follow t...
0 votes
1 replies
How to store String Enums with Realm
I can't save data as enum in Realm. When I track the state of a variable, and save, the old value remains, instead of the new one. What am I doin...
asked 4 months ago
0 votes
0 replies
shouldCompactOnLaunch plus migration block defined, Cannot migrate Realms that are already open
I'm trying to compact my realm DB size. I have the following config in my didFinishLaunchingWithOptions: func application(_ application: UIAppli...
-1 votes
0 replies
Nested Object POJO to realm object [closed]
I have a nested Plain Java Object Model and I want to mirror save it to realm. Is there a way to mirror complex data models to realm which includ...
asked 4 months ago
-1 votes
1 replies
io.realm.exceptions.RealmMigrationNeededException: Migration is required due to the following errors: - Class 'SaveMessage' has been added
I am developing new app but I am getting following exception java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example...
asked 4 months ago
0 votes
4 replies
How to delete specific realm object using for loop
I'm currently trying to delete specific realm object in my model using for loop, but every time that i execute the deleteFromRealm(i) it stops t...
asked 4 months ago
0 votes
0 replies
How to convert Date to string in realm
I am developing app now I want to convert Date to String in realm but I have tried but I can't achieve what I want below SaveMessage model class...
asked 4 months ago
0 votes
0 replies
How to save model data using realm?
I am developing a chat app and successfully saved User model class to the realm but now I want to save messages to the realm so that when user st...
asked 4 months ago
0 votes
0 replies
WatchOS app not installed from TestFlight
I want to install an application both on iOS and watchOS from TestFlight but I can only install the app on iOS. From the TestFlight application,...
asked 4 months ago
0 votes
0 replies
How to save message to realm?
I am developing a chat android app and I want to save chat history and messages so that when user start app and user able to see a chat history a...
asked 4 months ago
0 votes
0 replies
Data Not Being Inserted to Realm Object server
Im trying to do this kafka consumer to realm object server guide: https://realm.io/cn/docs/tech-notes/the-dequeuer/ but i have a problem when i...
asked 4 months ago
0 votes
1 replies
Remote Debugging has been terminated with reason: Connection lost
I am getting connection lost error, when try to see the realm database. here's how i am initalizing stetho and realm. i am still getting this err...
asked 4 months ago
0 votes
0 replies
RealmException: Primary key constraint broken. Value already exists: 1
I'm receiving a new error in my logcat from Realm, when the application tries to save a json inside realm "io.realm.exceptions.RealmException: Pr...
asked 4 months ago
0 votes
1 replies
How to fix nil value from realm object property?
I have a project which uses ObjectMapper for JSON serialization & deserialization and Realm to cache data locally. I get data from Rest API a...
0 votes
1 replies
Swift saving multiple images to the filesystem at once, High CPU
I have the following func, I need to clear out all picture columns in a DB and move to the file system. When I did this all in one go, there was...
asked 4 months ago
0 votes
2 replies
Why do I keep getting the error “no such module 'realmswift'”?
The previous answers to this question are over a year old. I've tried them. They don't really work. I have installed the pod for using Realm succ...
asked 4 months ago
0 votes
1 replies
Realm: creating a new Role and adding a User to it fails
I'm trying to wrap my head around object-level access control permissions with Realm Cloud (using query-based sync). What I want, is that one obj...
asked 4 months ago
1 votes
0 replies
Swift object values gets printed to the table view but shows as empty when printed to console
I have created a class as below: import Foundation import RealmSwift class StockCellContent: Object{ @objc dynamic var StockName: String =...
asked 4 months ago
2 votes
3 replies
Realm throws error when trying to add and save object
I'm developing iOS app with Realm library and it works fine. But when I tried to save one model it throws error like this. Terminating app du...
asked 4 months ago
1 votes
1 replies
Realm field not found exception
I am trying to implement Realm into a project of mine. I keep running into this java.lang.IllegalArgumentException: Invalid query: field '_id'...
asked 4 months ago
1 votes
1 replies
Realm PermissionManager.getPermissions() error after connection reset
I am facing this issue and would like to know if someone facing it too and maybe have solution. I also opened issue on Github but no answer so f...
0 votes
0 replies
'dynamic' property must also be '@objc' error is happened for an Enum variable even if 'dynamic' is already added
I'm using RealmSwift in Xcode 10.2 and Swift4.2. I made following code. import Foundation import RealmSwift enum MyEnum { case enum1 c...
asked 5 months ago
0 votes
0 replies
Performance when converting Results to Array
I’m investigating some memory/performance issues on my application and a specific usage with large amount of data. I’m trying to understand where...
asked 5 months ago
0 votes
1 replies
How to fix 'dynamic' property 'IpfSetId' must also be '@objc'?
I wrote a code months ago for my realm model and it works well. but now I get an error on RealmOptional properties that says 'dynamic' property...
asked 5 months ago