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!

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

yawaramin
In the Dialyzer docs ( http://erlang.org/doc/man/dialyzer.html#requesting-or-suppressing-warnings-in-source-files ), there is a way to tu...
New
fireproofsocks
I’m working on defining a simple Ecto schema for a table (in PostGres), but I don’t see where I can define a column as NOT NULL. Conside...
New
dokuzbir
Hello, I am trying to convert my lists to string without losing brackets.For start i have 3 map. They look like these buyer = %{ id: ...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
gonzofish
I’m currently trying to understand how to join three tables using Ecto. All the examples I’ve seen use 2, so maybe I’m just missing somet...
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
chewm
Hi guys, nice to meet you to the whole forum, I’m new here, I’m trying to configure visual studio code for elixir, right now the intellis...
New
chrisalley
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
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
Mooodi
Given a string, how can I get access to its character by index? Enum.at("my_string", 2) doesn't work. Or rather, not char, but a substr...
New

Other popular topics Top

senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod -- where is this set? Thanks.
New
lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
vac
Hi, I'm quite new in Elixir and I'm trying to format a string to a PEM format. I have the certificate value like MIIDBTCCAe2...... and ...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list....
New
beno
I will often find my self writing things similar to: case some_value do nil -> something() "" -> something() _ -> someth...
New
josevalim
Hi everyone, One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
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
magnetic
Hey :wave:t3: Elixir community, I’ve been learning Elixir, and working on some side projects. My editor of choice is VSCode, and althoug...
New

We're in Beta

About us Mission Statement