Install notify_ex
by adding it to your list of dependencies in mix.exs
:
def deps do
[{:notify_ex, "~> 0.2.0"}]
end
name
and message
are first and second parameters, then you can pass a list of
options as: :urgency, :time, :icon
.
iex> Notify.send("Notify", "Testing Notify", urgency: "low")
iex> Notify.send("Notify", "Another notify test", time: 4000, icon: "PATH-TO-ICON")