Elixir UserAgent device detection based on the device npm library.
- Add
device
to your list of dependencies inmix.exs
:
```elixir
def deps do
[{:device, "~> 0.3.0"}]
end
```
- Ensure
device
is started before your application:
```elixir
def application do
[applications: [:device]]
end
```