Giter VIP home page Giter VIP logo

Comments (12)

furkanuyar avatar furkanuyar commented on July 22, 2024 16

push_service = FCMNotification(api_key="")
api-key should be 'Server key' at console.firebase.google.com (your project page), under CLOUD MESSAGING tab.

from pyfcm.

garcia-0E avatar garcia-0E commented on July 22, 2024 7

Hello. I'm using this package to manage the server side of my in app notifications, but when i send the notification it throws an authentication error for the sender account, more explicitly:
There was an error authenticating the sender account.
I used the web API key provided in Firebase console but nothing changed, any clues?

from pyfcm.

sandeshnaroju avatar sandeshnaroju commented on July 22, 2024 2

Yeah, Server keys are deprecated, but no problem to pyFcm, I tried it with new tokens. It is working fine. Just replace old server keys with new token.

from pyfcm.

shlomiLan avatar shlomiLan commented on July 22, 2024 2

@sanjaymantati firebase console -> Settings -> General -> Web API Key

from pyfcm.

Guest007 avatar Guest007 commented on July 22, 2024 1

can't find this in docs, but couple of days ago my pushes stopped to deliver. I found that my key was dropped. I made new one and got that view (on russian only) http://joxi.ru/jnAyNegcDNNqrZ
Translation of info-message:
"To send a message instead of the server keys are now used tokens Firebase Cloud Messaging. Although the server keys, you can still use them to support discontinued."

from pyfcm.

olucurious avatar olucurious commented on July 22, 2024

Can you please clarify and add references in the Firebase Cloud Messaging documentation

from pyfcm.

olucurious avatar olucurious commented on July 22, 2024

I've not been able to find information abt the Firebase Cloud Messaging tokens in the http server ref, anyone here should notify us when there's any info abt the new token

from pyfcm.

shlomiLan avatar shlomiLan commented on July 22, 2024

Thanks, the docs are not clear, maybe it should be in the main readme page. I thought that I need to use my private key as the `api_keyz

from pyfcm.

 avatar commented on July 22, 2024

Means i have to change FCM_SERVER_KEY with token??
If yes, then where i can get this token?

from pyfcm.

TheOneWayTruth avatar TheOneWayTruth commented on July 22, 2024

push_service = FCMNotification(api_key="")
api-key should be 'Server key' at console.firebase.google.com (your project page), under CLOUD MESSAGING tab.

In what file do i define that?

from pyfcm.

olucurious avatar olucurious commented on July 22, 2024

Wherever you're instantiating the FCMNotification class

from pyfcm.

mglowinski93 avatar mglowinski93 commented on July 22, 2024

Hello. I'm using this package to manage the server side of my in app notifications, but when i send the notification it throws an authentication error for the sender account, more explicitly: There was an error authenticating the sender account. I used the web API key provided in Firebase console but nothing changed, any clues?

@rt-garcia
Cloud Messaging API (Legacy) needs to be enabled.
After that, you will get Server key.

from pyfcm.

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.