realm Questions
4
I'm just starting up with RealmSwift, and I'm trying to store an array of Strings in Realm. It doesn't work, so now I'm using List<String>() as an alternative. However, how do I convert these...
2
I have added Realm and RealmSwift libraries in my iOS project. My app was fine till 2 days back. Suddenly it started giving following error.
Error:Swift package target 'Realm' is linked as a static...
Consumption asked 20/5, 2024 at 16:8
2
"kotlin-allopen" plugin work but "kotlin-noarg" plugin don't work.
How can I do?
Below is the code.
build.gradle
buildscript {
ext.kotlin_version = '1.1.3-2'
repositories {
google()
jcenter(...
4
Solved
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 -
...
Selfinductance asked 26/5, 2018 at 6:2
5
Solved
I'm receiving an RLMException for the following reason:
Attempting to create an object of type 'Student' with an existing
primary key value '258975085-504336622-62850'.
The confusing part is...
6
Solved
I want remove all message object from realm those are equal to userid
RealmQuery<Message> rowQuery = realm.where(Message.class).equalTo(Message.USER_ID, userId);
realm.beginTransaction();
/...
1
According to this answer, all that's necessary to get an unmanaged object from an existing managed object is to do this:
let unmanagedObject = Object(value: existingObject)
However, when I do th...
3
Solved
I am trying to use an Optional Int in Realm and am getting an old error I think.
Code
dynamic var reps: Int? = nil
Error
'Property cannot be marked dynamic because its type cannot be represen...
Guthrie asked 26/10, 2015 at 21:58
2
Solved
I get filtered objects like:
realm.objects(Post.self).filter("title contains '\(searchText)'")
But I need case insensitive search option, Realm docs say:
Case-insensitive comparisons for stri...
4
Solved
I want to do something like this:
enum WeekDay {
case Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday
}
class Person: Object {
dynamic var birthday: WeekDay? = .Monday
dynamic ...
4
Solved
I am writing an app using the Realm.io database that will pull data from another, server database. The server database has some tables whose primary keys are composed of more than one field. Right ...
Marxist asked 18/7, 2015 at 10:36
1
I'm trying to use Realm in my app. I'm saving the data and all is good, but when I want to finally read it and send it to Firebase I'm getting an error.
@IBAction func registerButtonTapped(sender:...
Wellmannered asked 28/7, 2016 at 20:46
2
I sent a new version to the store and when i was opening it was crashing. In debug mode did not happen but in relese buildtype I can reproduce it.
The exception was:
Fatal Exception: java.lang.Ru...
3
Solved
I am trying to add a new property to the Realm object UserDetails. Here is my try:
class CustomerDetails: Object {
dynamic var customer_id = 0
dynamic var customer_name = ""
}
Now i need to ad...
3
Solved
I'm populating a List with a Realm Result set.
When navigating from this list it opens a new view then automatically closes that view.
Using a struct presents no issue.
Why would the second view...
Bursa asked 14/10, 2019 at 12:17
3
Solved
I'm trying to learn how to use Realm Swift and Charts so I can eventually use them both in an app I'm building and I'm having a hell of a time figuring out Realm. Eventually, I'm planning on having...
5
I noticed many problems with accessing realm object, and I thought that my solution would be solving that.
So I have written simple helping method like this:
public func write(completion: @escapi...
3
Solved
I want to clear whole database when a user press logout button and loads a new data when another user login.I tried many solutions like
try {
Realm.deleteRealm(realmConfiguration);
} catch (Exc...
4
Solved
When I use realm.where(Model.class) it returns RealmResults and list item's fields are empty. How to convert queryset to readable ArrayList or iterate over RealmResults to get actual data from obje...
Overpower asked 16/5, 2016 at 9:46
8
I'm quite New to ios and cocoapods.
I am using realm.io swift version. Everything is latest version including xcode, realm and cocoapods
I did it with dynamic linking and realised itunes don't acc...
2
I am trying to delete the fcm token from a user, and then logout.
But I cant do that because I receive the error 'Calling Kotlin suspend functions from Swift/Objective-C is currently supported only...
Tsang asked 9/3, 2023 at 19:51
4
I'm making a mobile application with react native.
I want to use Realm (mongodb).
So after running:
npm install realm
realm was correctly added in the "node_modules" and I tried to impor...
Lownecked asked 31/3, 2022 at 14:40
3
I'm using RealmSwift and I have a realm object called Book
Book
=====
title: String
pageCount: Int
when the app starts I get all the books using:
allBooks = realm.objects(Book)
a Book has a ...
6
Solved
I'm creating a Realm object in Kotlin.
Realm Object:
open class PurposeModel(var _id: Long?,
var purposeEn: String?,
var purposeAr: String?) : RealmObject()
When I compile the above code I'm ...
1
Solved
After updating to Android Gradle Plugin 8.0, I get the following build-time errors during the minifyReleaseAndroidTestWithR8 step:
Missing classes detected while running R8. Please add the missing...
Mycetozoan asked 25/4, 2023 at 20:24
1 Next >
© 2022 - 2025 — McMap. All rights reserved.