Тёмный

How to get Access Token in new Firebase Cloud Messaging V1 HTTP API | Flutter speed code | Part 1 

Coding with Mukund
Подписаться 233
Просмотров 6 тыс.
50% 1

In this Flutter speed code tutorial, learn how to seamlessly obtain an access token for the new Firebase Cloud Messaging (FCM) HTTP v1 API. With the transition to the v1 API, authentication now relies on OAuth 2.0 tokens, requiring a slightly different approach compared to the legacy API. Follow along as we demonstrate a simplified method to fetch the access token using the Google Auth library, tailored specifically for Flutter applications.
In this video, you'll discover:
- The significance of migrating to the Firebase Messaging V1 HTTP API.
- An overview of OAuth 2.0 tokens and their role in authenticating requests to the FCM API.
- Step-by-step implementation of a streamlined process to acquire an access token in Flutter.
- Best practices for securely integrating Firebase services into your Flutter project.
Whether you're a beginner or experienced Flutter developer, this tutorial provides valuable insights and practical techniques to seamlessly handle authentication and leverage the powerful capabilities of Firebase Cloud Messaging in your Flutter applications. Don't miss out on this essential skill for modern app development!
Watch now and elevate your Flutter app's messaging capabilities with Firebase Cloud Messaging V1 HTTP API. Don't forget to like, share, and subscribe for more Flutter tips, tricks, and tutorials!
If you have doubt contact me through
Mail ID: codingaigpt@gmail.com

Опубликовано:

 

5 фев 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 74   
@TheR3nE88
@TheR3nE88 4 месяца назад
Finally! I was stuck for months... wonderful. thanks you!
@coding_with_mukund
@coding_with_mukund 4 месяца назад
Glad I could help! 😃
@lonerider9645
@lonerider9645 3 месяца назад
TYSM! helped a lot, was stucked in it for so long!
@coding_with_mukund
@coding_with_mukund 3 месяца назад
Nice to know that I helped. Please share and subscribe ☺️
@CristianZarraga
@CristianZarraga 4 месяца назад
Funciona de maravilla, continua con más videos!! Gracias!
@coding_with_mukund
@coding_with_mukund 4 месяца назад
Thanks for your feedback and please share and subscribe
@user-dy2ge2wj6e
@user-dy2ge2wj6e 4 месяца назад
Hermano, excelente! En serio, que funciona de maravilla!
@coding_with_mukund
@coding_with_mukund 4 месяца назад
Thanks for your feedback and please share and subscribe
@leonardoduarte2001
@leonardoduarte2001 4 месяца назад
You just made a programming student a very happy one :) May Odin bless you \o
@coding_with_mukund
@coding_with_mukund 4 месяца назад
Your comment made me very happy. Thank you.
@syedmuhammadnawazshah7687
@syedmuhammadnawazshah7687 Месяц назад
Great work brother. Searched a lot for this and finally found your video ❤❤
@coding_with_mukund
@coding_with_mukund Месяц назад
Glad it helped
@shuaibalghazali3405
@shuaibalghazali3405 2 месяца назад
Thanks a lot bro, you just got a subscriber this solved my mystery
@coding_with_mukund
@coding_with_mukund 2 месяца назад
Thank you so much, please share with friends and family.
@hadicheayto2558
@hadicheayto2558 5 месяцев назад
thank you , you make my life easier
@coding_with_mukund
@coding_with_mukund 5 месяцев назад
Thank you, please share and subscribe.
@viveks.
@viveks. 2 месяца назад
Thank you!
@coding_with_mukund
@coding_with_mukund 2 месяца назад
You're welcome! Please share and subscribe
@mafazkhan8996
@mafazkhan8996 5 месяцев назад
Wonderful tutorial staright to the point very helpful?
@coding_with_mukund
@coding_with_mukund 5 месяцев назад
Join here and DM me I'll provide the code t.me/coding_with_m
@mafazkhan8996
@mafazkhan8996 4 месяца назад
Thank you so much, I fixed it. I was using the wrong package🥹
@1tv713
@1tv713 3 месяца назад
thank so much
@coding_with_mukund
@coding_with_mukund 3 месяца назад
Happy to help 😍 Please share and subscribe
@azulmouad4551
@azulmouad4551 Месяц назад
thanks man
@coding_with_mukund
@coding_with_mukund Месяц назад
Happy to help
@nattawutxp
@nattawutxp 4 месяца назад
awesome
@coding_with_mukund
@coding_with_mukund 4 месяца назад
Thank you for your precious feedback
@kunaldhopavkar
@kunaldhopavkar Месяц назад
Thanks a lot sir
@coding_with_mukund
@coding_with_mukund Месяц назад
So nice of you
@Sarfrozkhan
@Sarfrozkhan 27 дней назад
any php code ?? i mean i want to send notification from php file to android application!!!
@KrishNamaste
@KrishNamaste Месяц назад
hey, please upload part 2 + i am having some doubts about this. is there any way i can connect with you? great video!
@coding_with_mukund
@coding_with_mukund Месяц назад
Contact me through codingaigpt@gmail.com
@Ayan-od8hk
@Ayan-od8hk 3 месяца назад
Bro, I followed exactly but getting "Failed to exchange authorization code. Invalid server response."
@coding_with_mukund
@coding_with_mukund 3 месяца назад
Please send your code or error log to codingaigpt@gmail.com
@user-ny8hw3iw2s
@user-ny8hw3iw2s Месяц назад
I'm getting the same error. Have you managed to fix the issue?
@coding_with_mukund
@coding_with_mukund Месяц назад
@@user-ny8hw3iw2s contact me through codingaigpt@gmail.com
@arnonym1525
@arnonym1525 2 месяца назад
Thanks a lot for the tutorial! How long will the access token be valid? Is there some method to test if it is still valid or do I just try to use and refresh if it throws an error?
@coding_with_mukund
@coding_with_mukund 2 месяца назад
Access token will be valid for an hour. You must call getAccessToken() method directly where you use the Authorization key. If you have more doubts I can upload full video.
@dinayousry8465
@dinayousry8465 3 месяца назад
I get "Failed to obtain access credentials. Error: invalid_grant Invalid JWT: Token must be a short-lived token (60 minutes) and in a reasonable timeframe. Check your iat and exp values in the JWT claim. Status code: 400"
@coding_with_mukund
@coding_with_mukund 3 месяца назад
Share your code to codingaigpt@gmail.com
@dinayousry8465
@dinayousry8465 3 месяца назад
I used the same method you used, it worked once, and when I tried to use it again, it didn't work
@coding_with_mukund
@coding_with_mukund 3 месяца назад
@@dinayousry8465 it's because access token gets refreshed every hour you need to put credentials method in key value so it automatically gets access code. I'll upload part 2 soon.
@dinayousry8465
@dinayousry8465 3 месяца назад
How can i do that
@coding_with_mukund
@coding_with_mukund 3 месяца назад
@@dinayousry8465 just call getaccesstoken () method where you put key while sending notification. Send your Fcm code to codingaigpt@gmail.com and I'll help you
@furquanahmad846
@furquanahmad846 Месяц назад
nice video but please upload the next video or complete video i got stuck in between bro
@coding_with_mukund
@coding_with_mukund Месяц назад
Ok I'll upload the complete video soon
@casaurabhkhatri
@casaurabhkhatri 4 месяца назад
I'm not using flutter. Just using android studio with java. How I do it?
@coding_with_mukund
@coding_with_mukund 4 месяца назад
You can make the REST API call in java similar to this. If you don't know how then I'll make a video of it.
@casaurabhkhatri
@casaurabhkhatri 4 месяца назад
@coding_with_mukund Bro, you don't know how much people are searching for a solution. I will request you if you make a detailed video on - How to send device to device notifications in FCM HTTP V1.
@coding_with_mukund
@coding_with_mukund 4 месяца назад
@@casaurabhkhatri sure I'll upload soon
@casaurabhkhatri
@casaurabhkhatri 4 месяца назад
Thanks bro 🙏 🙌
@mohammedaziz8635
@mohammedaziz8635 Месяц назад
I got the token right, Thank you! Can you give guidance how to send FCM using http post request with the token in Flutter?
@coding_with_mukund
@coding_with_mukund Месяц назад
I'll upload full videos soon
@mohammedaziz8635
@mohammedaziz8635 Месяц назад
@@coding_with_mukund Thanks, Please notify me when you do so
@coding_with_mukund
@coding_with_mukund Месяц назад
@@mohammedaziz8635 today I'll upload
@mohammedaziz8635
@mohammedaziz8635 Месяц назад
@@coding_with_mukund I think you did not upload yet, right?
@coding_with_mukund
@coding_with_mukund Месяц назад
@@mohammedaziz8635 sorry I've been busy with work. Soon I'll upload
@iqaiserhussain
@iqaiserhussain 2 месяца назад
Can we do similar call in postman?
@coding_with_mukund
@coding_with_mukund 2 месяца назад
You can generate an access token and use it in the postman to test. But remember you need to generate new tokens every hour as tokens refresh.
@iqaiserhussain
@iqaiserhussain 2 месяца назад
@@coding_with_mukund is there any google Api available which can generate access token for me?
@itsfantv2378
@itsfantv2378 Месяц назад
Is there part 2 for this, sir?
@coding_with_mukund
@coding_with_mukund Месяц назад
Yes, I'll upload the complete video soon.
@gildaschadrac6885
@gildaschadrac6885 2 месяца назад
hello
@coding_with_mukund
@coding_with_mukund 2 месяца назад
How can I help you?
Далее
Firebase Cloud Messaging API (v1) Tutorial
9:13
Просмотров 65 тыс.
Build a Flutter App with Gemini AI
4:03
Просмотров 21 тыс.
Real reason behind Microsofts blue screen of Death
9:28