pmjoe

pmjoe

Could users get the actual Elixir code from LiveView Native?

Elixir is a dynamic language, given that LiveView Native applications are built with it and shipped to the clients would the clients get access to all source code easily?

Most Liked

victorbjorklund

victorbjorklund

No, they can’t. Liveview Native is two parts. The Swift client (or android client in a latter stage) and the server.

  1. Can they get the Swift code that is shipped to the client? Yes, in theory they can decode it by reverse engineer it (which you can do with any app). However, there isn’t much for them to find there compared to a “normal” swift app since it will mostly be boilerplate code for the client (which they can find on Liveview Natives Github).

  2. Can they get the Elixir code on the server? Not unless you have any vulnerabilities in the code or on the server that gives them remote access (and then they can still only access the compiled BEAM files). But that can happen with any backend.

So in summary, Liveview Native is probably “more” secure against reverse engineering than a normal Swift app.

rcm765

rcm765

We haven’t yet tried but we’re speculating that we could build a Swift client shipped with a Phoenix LV server compiled into it. This would allow for offline mode, low connectivity mode. However, to the best of my knowledge the Phoenix app would still be compiled and you’d be talking about the same issue of having decompile any natively built app. Elixir doesn’t run as a script, you’d only be getting the binary.

tme_317

tme_317

It would be really :fire: if LVN could support offline maybe using a similar approach as elixir-desktop · GitHub. At least the part about bundling the ERTS, Elixir, and Phx/LV server into a runtime binary with local sqlite database installed on the mobile device. I was really impressed it actually worked great when I tested it on iOS!

I guess a lot of complexity would be if local data needs to be synchronized with a server when going back online? I haven’t researched it but maybe that’s a “solved problem” nowadays??

At work I’ve had early discussions about maybe writing a pretty simple internal mobile app which would have to stay reliable in offline network conditions and really don’t want to have to learn Swift or use RN. The small app would likely just take a couple days if I could use LVN!

Last Post!

D4no0

D4no0

It’s not about synchronization when we talk about offline apps. There are a lot of tools to manage that, however if you don’t have native bindings implemented, you are very limited in what you can do compared to classical native apps, this is the state that libraries like elixir-desktop currently are.

Where Next?

Popular in Questions Top

PeterCarter
There are pre-rolled solutions for other frameworks that do work. However, Phoenix does not seem to have these. Have people had good expe...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New

Other popular topics Top

JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
dogweather
I wrote this comment on r/haskell, and it’s not popular there. :wink: But I think I’m on to something… Haskell reminds me of Java, and e...
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 44778 311
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New

We're in Beta

About us Mission Statement