raphael
d2fe15d3ae
- message now contains a second string which is meant for unencrypted title information, which can be displayed without e2e encryption. - senders can now be deleted - the same sender / token connection is no longer added to the database
18 lines
337 B
Elixir
18 lines
337 B
Elixir
defmodule Bump.Firebase do
|
|
|
|
def test() do
|
|
IO.puts "Hello, world!"
|
|
end
|
|
|
|
|
|
def push(%{"firebase_token" => token, "title" => title, "data" => data}) do
|
|
IO.puts "Pushing #{title}"
|
|
n = Pigeon.FCM.Notification.new(
|
|
{:token, token},
|
|
%{"body" => title},
|
|
%{"data" => data})
|
|
Bump.FCM.push(n)
|
|
end
|
|
|
|
end
|