Replies: 2 comments
-
Hi @echan00, yes, you can use Rails with Capacitor, but there are some nuances here. First, Capacitor's However, if you'd like to then build iOS and Android apps, rails can't just run in those environments because they are not true server environments. Instead, you'd need to either save a snapshot of the rendered HTML for the rails site (which is probably not very useful), or use the remote The last option is probably what you were expecting, but there are some downsides to this. Apple, for example, is strict about UX of mobile apps, and if they think your app is simply loading a remote website, they might not accept your app. We have been pushing people away from this config option but so many people want to use it that it's really at your own risk given that it falls into an app store UX gray area and depends heavily on the experience you build: https://capacitorjs.com/docs/config Hope that helps |
Beta Was this translation helpful? Give feedback.
-
Hi @mlynch thanks for the detailed response. To make sure I understand: There are two options:
You say Option 2 ("the last option") is not suggested because Apple does not like apps that are essentially a browser rendering a website. Correct? Or you are not suggesting to go with Option 1? EDIT:
Correct? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm hoping to use Capacitor to create an iOS app out of my rails react app (helladoge.com). From what I gather, this ought to be very possible but am having trouble with setup:
What is this
webDir
withindex.html
? More specifically what is thisindex.html
supposed to contain?I'm trying to figure out the equivalent in Rails React (since there are many), is this the index.html my domain root points to?
For those who are not familiar with Rails (or Rails React), Rails uses a
view/layouts/application.html
template for all pages. Inside this layout html file, there is a <%= yield %> ruby tag where each different route/page will insert its content into the body. Sometimes the content of each route/page will render (e.g embed) additional content from another Html file.I guess there isn't a primary main index.html file in a Rails React web application. I would appreciate any ideas/suggestions or if anyone could point me towards any references.
Beta Was this translation helpful? Give feedback.
All reactions