Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't send a message #9

Open
macabeus opened this issue Jun 24, 2020 · 0 comments
Open

Can't send a message #9

macabeus opened this issue Jun 24, 2020 · 0 comments

Comments

@macabeus
Copy link

macabeus commented Jun 24, 2020

Thank you for this package. I'm trying to use it in order to send a notification for mobile app using Firebase, but I can't.
When I try to send a message I'm always receiving this error:

[error] #PID<0.727.0> running BckoWeb.Endpoint (connection #PID<0.725.0>, stream id 2) terminated
Server: localhost:4003 (http)
Request: GET /api/v1/news/1/push
** (exit) an exception was raised:
    ** (MatchError) no match of right hand side value: :error
        (firebase_admin_ex 0.1.0) lib/messaging.ex:17: FirebaseAdminEx.Messaging.send/2

I created a new account on Google Cloud Platform, I downloaded its json and set the path on GOOGLE_APPLICATION_CREDENTIALS. So I don't know why I'm receiving this error on Goth.Config.get(client_email, :project_id) line.

How to solve that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant