New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cordova / PhoneGap / Ionic Support #261
Comments
I just rebased and pushed my older WIP branch, |
I mean for iOS. For Android, this is pretty much blocked on #262 being done. |
👍 for Ionic support. Hopefully Ionic2! |
This would be awesome and well received in the Ionic community for sure. Curious why this wouldn't Just Work given the recent realm-js release? |
@mlynch I would assume because for phonegap, an interface between the js library to the native hardware of the device would need to be developed to actually bring the benefit of realms speed. But then again, I have no idea. |
The main issue with supporting phonegap/cordova at the moment is the need to support android. React Native runs on JavascriptCore on both iOS and android which is how we support both platforms. This is not the case for cordova/phonegap. |
+1 |
It's a good option to create a cordova-plugin to use realm-java and realm-cocoa? As in https://github.com/mapsplugin/cordova-plugin-googlemaps |
@alazier can you expand on that? |
@PierBover - the way the Realm binding works is that we hook directly into the JS context for whatever environment we are supporting. React-native uses the same version of JavascriptCore on both ios and android which makes integration pretty straightforward. Cordovoa uses whatever the builtin JS interpreter is on the device it is running on, which makes things much more difficult. It might be possible to make things work by rolling a custom version of Cordova but this isn't something we have looked into. If you just want to support Cordova/iOS then it should be possible to get things working using the current codebase by getting the JSContext from a webview and passing it into the Realm initialization methods, but this is not something that we can currently support or maintain. |
Ok I see the problem. Probably the best way to go for Cordova/Phonegap is making a native plugin (since you already have native iOS and Android libraries) with a JS wrapper API that mimics the one used in your React Native implementation. |
My team really wants Realm for Cordova/Ionic. Any updates on if/when Cordova support would rollout? |
+1 |
I believe a plugin approach such as the one described by @PierBover would be the easiest way to do it. |
+1 |
+1 ionic2 support is really wanted in the community. This will open doors for PWA as well. |
+1 |
1 similar comment
+1 |
+1 IONIC2 support is wanted |
+1 |
3 similar comments
+1 |
+1 |
+1 |
Any news on this? |
+1 |
As far as I know, this is not something that we are actively working on right now. |
+1 |
Damn, it's a shame that this isn't something that's actively being worked on - i think it's a big market potentially. In the meantime, if you're not working on this, can someone close it and update it with some official news? In the meantime guys - the best alternative is PouchDB with the sqlite adapter. |
+1 |
1 similar comment
+1 |
What's the status? I've used React Native with Realm. But want to switch over using Ionic/Cordova with Realm. Blazingly fast database!! |
What is the status again? it's been almost half a year since @kristiandupont 's statement. React native isn't the only cross platform JS framework, centering yourselves on it forces the rest of us to look elsewhere for worse solutions. |
+1 |
Feature Request: GoalsTo achieve realm connection between a cordova-based hybrid app and the native library code by creating a cordova Typescript plugin that takes a generically Inputted syntax (RealmJS syntax?, swift syntax?) that redirects to the desired methods in the native code. Examples of how this works: https://github.com/arnesson/cordova-plugin-firebase Expected ResultsTS Plugin Usage:
TS BACKEND:
Native IOS: _let realm = try! Realm() etc... native Android:_ REASONRealm.JS isn't made to be used as front end for webview-based hybrid apps, so there must be a way to use it. the easiest is to move the code "behind", and connect to the desired core when platform meets needs. Possible compatible versionsAndroid |
We currently don't have the spare capacity to take on more new platforms. There is a significant amount of work involved in creating, maintaining and providing support for each platform. So we would need the community to step up and assist with this effort. I can see that some effort is being put into https://github.com/airamrguez/cordova-plugin-realm. |
+1 |
@bmunkholm hey brian, we understand that the capacity to make a new platform from scratch can be breathtaking. the issue with cordova-plugin-realm is that it relies on premade and predefined scheme files, built over json files. in the extreme end the community would be in charge of doing this kind of feature, we would appreciate a sample android studio module and ios pod (with their usage guides) with the Native side of the RealmJS calls, that we could later wrap it in a cordova module. |
@tryadelion As mentioned it's unfortunately not something that we can devote resources for at the moment. Depending on the help needed though, we would need to get some commitment from the community to this. |
+1 |
1 similar comment
+1 |
+1 for Ionic/Cordova |
1 similar comment
+1 for Ionic/Cordova |
+1 for Cordova Plugin |
Hi; I have need of realm in either Cordova or Capacitor and would potentially be interested in taking responsibility for the maintenance and/or sponsoring some additional help with it; however, after spending about 6 hours digging through code to understand how things are set up I can see a number of different approaches which could be taken to try to make it work and I don't want to waste a lot of time implementing something that is counter to the goals of the rest of the project. Is there an IRC, Slack, Discord, etc room where I could discuss with other developers to get some questions answered and make sure I'm on the same page with others? |
@taxilian It is a very generous offer, thank you. I can fully understand if digging through the source code hasn't help you much. We don't have a public chat forum but we can probably set up Slack channel if needed. |
That would be great. I am on the realm-public slack group and I will be working on it today. I’m starting to understand the JavaScript abstraction finally but there are definitely some areas that are a pain to track down.
Richard
…Sent from my phone
On Feb 17, 2020, at 05:02, Kenneth Geisshirt ***@***.***> wrote:
@taxilian It is a very generous offer, thank you. I can fully understand if digging through the source code hasn't help you much.
We don't have a public chat forum but we can probably set up Slack channel if needed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
How is going with Realm plugin for Ionic? :D |
Realm for Ionic! Please! |
Is there any Idea how to use realm with ionic? |
We should use |
realm-web requires an atlas web services backend. it's not helpful for
someone who just wants a standalone database without a subscription service.
…On Tue, Jan 10, 2023 at 11:52 PM Saravanakumar ***@***.***> wrote:
We should use realm-web?
https://www.mongodb.com/docs/realm/web/quickstart/
—
Reply to this email directly, view it on GitHub
<#261 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABWYTSB5PJMES6C2GHEAYLWRZKDFANCNFSM4B3WPNTA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
It might be possible to create a capacitor plugin that uses the |
No description provided.
The text was updated successfully, but these errors were encountered: