Giter Club home page Giter Club logo

Comments (8)

tiagomtotti avatar tiagomtotti commented on August 11, 2024

Hi, can you please post the code snippet you're using to send the message, along with the message object?
Thanks

from firebasenet.

flaviusdemian avatar flaviusdemian commented on August 11, 2024

It seems that when I migrated to FCM the server key changed. Now I also get not authorized.
Can you please confirm that the server key is the Web Api key?

projectsettings

from firebasenet.

tiagomtotti avatar tiagomtotti commented on August 11, 2024

On FCM,, you should go to Project Settings -> Cloud Messaging. There you'll find the FCM Token and Server Key.
When I wrote the library a couple of months ago, the Token option wasn't avilable. I'll update the code to support it till tomorrow. For now, you should use the Server Key to create the FCM Client.

from firebasenet.

flaviusdemian avatar flaviusdemian commented on August 11, 2024

Ok, Looking forward, Thanks

from firebasenet.

flaviusdemian avatar flaviusdemian commented on August 11, 2024

Do you have any suggested documentation in the meanwhile? We are stuck with this and it is bad. Thanks

from firebasenet.

tiagomtotti avatar tiagomtotti commented on August 11, 2024

Take a look at the integration tests in the project. You should find some
samples there.

Em 13 de nov de 2016 13:28, "Flavius Demian" [email protected]
escreveu:

Do you have any suggested documentation in the meanwhile? We are stuck
with this and it is bad. Thanks


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#2 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMJFQZ0us89nk8odRV9YCRnkAtVpmNmFks5q9yyqgaJpZM4KwsHb
.

from firebasenet.

flaviusdemian avatar flaviusdemian commented on August 11, 2024

Ok. I will

from firebasenet.

tiagomtotti avatar tiagomtotti commented on August 11, 2024

@slown1 , the invalid registration means that the device you're specifiying in the "To" section wasn't registered to receive notifications from your project.

You should use the client apis https://firebase.google.com/docs/cloud-messaging/ for Android, IoS, to register the device in your project.

If you want to do a test, you can change the To parameter to "/topics/android". This is a pre-built topic in FCM that will send a message to all android devices,

from firebasenet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.