Firebase Cloud Messaging API (v1) Tutorial

preview_player
Показать описание
Learn how to use the new Firebase Cloud Messaging API (v1).

Other videos:

#firebase #api #v1 #messaging
Рекомендации по теме
Комментарии
Автор

I'm so sorry. You DO have to run the python code found in step 3 "Generate the access token" to generate the access token. In the video I said you can skip that part, but I was wrong.

The access token has a limited lifespan, so you'll need to run the code each time you want to send a notification to get a new access token. If you use something different like Node.js, you can ask NextChat.ai to change the code into Node.js code.

The token in the video is actually the identifier of the json file that is used to generate the access token, NOT the access token itself. You have to use the json file that is downloaded when you create the key in the code found in the NextChat conversation at step 3 "Generate the access token" to get the actual access token.

If you're having any issues, just copy and paste any errors into the NextChat.ai conversation and NextChat.ai can help you get to the correct solution.

For example, when I tested out the code in this video, I said to NextChat.ai:

"i got this error after sending the post request:

{
"error": {
"code": 401,
"status": "UNAUTHENTICATED"
}
}

I did not run the python code to generate the key. I used the key that was in my Google account"

NextChat.ai then told me how to fix the issue I was having.

NativeNotify
Автор

100% true that google lack in documentation which is wasting developer time. Thanks for the great video

dtube
Автор

omg, I am just new to the android world and I thought that I was stupid not to understand the documentations or the google way to get things done. Thank you so much for your help!

youssefkhaled
Автор

Been in GCP and Firebase for 4 years now.

It did take a long time to understand service accounts and how they work (I was also new to most cloud dev ops at the time as well).

But I actually really appreciate it now. It’s very secure and once you understand every service has an api and that you should make service accounts to secure your apps, it became really intuitive for me.

seaux-ryan
Автор

I like your sarkazm, but at the end two surprising points. 1. The generated key is not Bearer token. 2. BTW, this (not bearer) key can be generated from 4th tab called Service accounts located on the Firebase Project Setting page.

gerardhajduk
Автор

Thank you, really helps. And glad to know it's not just me found that FCM's document is just like shake.

weselyong
Автор

i know and i am also irritating from that type of documentation.... very nice and helpful video thank you so much sir...🙏🏼🙏🏼🙏🏼

someshsahu
Автор

Awesome been frustrated for many days, until I saw this video

MrKesie
Автор

Thankyou Thankyou Thankyou So MUCH. I thought I was stupid to not understand the docs.

noway
Автор

your an angel i've been searching all over for this thanks a lot

lariniabdellah
Автор

Thank you for showing where to find the important settings in Google Cloud such as the Firebase Cloud Messaging API and the Service Accounts + Access Key, could not have done it without this video

assassinofblack
Автор

oh man this is so frustrating, finally you solved the google documentation maze

willasaskara
Автор

Thanks pal you're the best! You just made an IT student a very happy one :)

leonardoduarte
Автор

From my heart. Thank you. I've literally been angry the last few days because of the absolute garbage documentation from Googles side.

perfect.stealth
Автор

Really thanks sir, i am stuck in this for whole day, but when i watch your video, i understand the whole concept. thanks again sir

cabbiewebsite
Автор

I think it is no coincidence that after asking Gemini about how to migrate from legacy FCM APIs to HTTP v1 in his response he recommended this video to me

KevinFranco-ydnt
Автор

Totally agree with all you say! Great content! Thanks!

esrefzekiparlak
Автор

I was trying to make FCM work from Cloud Functions in a Flutter project, no way in hell I would have found out all of these tiny hidden details. Thanks!

glrbrasil
Автор

Thank you, but I have a simple note. You, too, like Google, make things extremely difficult. This is your video. You can make it only 30 seconds.

iqbrb
Автор

I get the same feeling with all Google APIs

anonymousmangalorean