kuon

kuon

Embeded phoenix instance for offline Live View support

I just finished my first LiveView powered app. And I am really happy about the whole app structure and organization.

The only thing missing from LiveView is mobile app/offline support.

So I had an idea. I’m quite sure I am not the first, but I could not find any discussion of it.

What about some sort of SDK with an embedded phoenix server running on the client. I know erlang can be compiled on both iOS and android (or at least it used to work).

Basically it would be:

phoenix (server)->phoenix (client)->webview (client)

I know it is not a simple project, as it requires quite a few elements:

  • Compiling erlang and elixir for iOS and Android
  • Creating a caching DB for client data (ETS saved to file?)
  • Sync protocol and conflict resolution between the two phoenix instances

Live View wouldn’t need any changes, but views, instead of using ecto to load data, would use some library that run the code remotely, and gracefully fallback in case of the user being offline.

I have a rough idea of the architecture, and again, I know it is not a small task, but as removing JS has been so successful (for me, and I think others), I’d like to extend the idea to mobile app.

What are your thoughts? If there is some real interest, I might dedicate times to this.

Most Liked

marcalchca

marcalchca

Hi, has this idea been abandoned?
I’m very much interested in being able to use LiveView for offline scenarios.
I’d like to build PWAs as an easier to maintain alternative for native mobile apps.

So your idea about having an offline “version” of LiveView features, would be perfect.

Thanks for letting me know.
I’m new to Elixir / Phoenix, planning to reorient my consultancy to full-stack development.

Best regards
Marc

Where Next?

Popular in Discussions Top

Fl4m3Ph03n1x
Background A few days ago I was listening to The future of Elixir from Elixir Talks, with Dave Thomas (@pragdave ) and Brian Mitchell. I...
New
MarioFlach
Hello, I want to share a project I’ve been working on for a while: https://github.com/almightycouch/gitgud Background Some time ago I ...
New
crispinb
On reading dhh’s latest The One Person Framework it strikes me that Phoenix with LiveView is already pretty much this. However, never hav...
New
nunobernardes99
Hi there Elixir friends :vulcan_salute: In a recent task I was on, I needed to check in two dates which of them is the maximum and which...
New
sergio
There’s a new TIOBE index report that came out that shows Elixir is still not in the top 50 used languages. It also goes on to call Elix...
New
PragTob
Hey everyone, this has been on my mind for some time and I’d love your input on it! TLDR: I feel like maps are superioer for storing and...
New
eteeselink
Hi all, In the last days, two things happened: A blog post titled “They might never tell you it’s broken” made the rounds. It’s about ...
New
restack_oslo
Hello, Please pardon me for any faux paux. I am 46 and this is my first time on a forum of any kind. I wanted to to get answers from tho...
New
ben-pr-p
In general I’ve been sticking to this community style guide GitHub - christopheradams/elixir_style_guide: A community driven style guide ...
New
pdgonzalez872
If this has been asked here before, please point me to where it was asked as I didn’t find it when I searched the forum. Maybe a mailing ...
New

Other popular topics Top

malloryerik
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode. The solution seems to be, in a hyphena...
New
AstonJ
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
New
chrismccord
As promised, the first release candidate of Phoenix 1.3.0 is out! This release focuses on code generators with improved project structure...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
aesmail
Hello guys, I have finally made it. I created an admin interface for a framework. It’s been on my todo list for years and with the curre...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
Qqwy
Update: How to use the Blogs & Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3271 126479 1222
New

We're in Beta

About us Mission Statement