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

  Рет қаралды 5,900

Coding with Mukund

Coding with Mukund

5 ай бұрын

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

Пікірлер: 74
@TheR3nE88
@TheR3nE88 3 ай бұрын
Finally! I was stuck for months... wonderful. thanks you!
@coding_with_mukund
@coding_with_mukund 3 ай бұрын
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 ☺️
@leonardoduarte2001
@leonardoduarte2001 3 ай бұрын
You just made a programming student a very happy one :) May Odin bless you \o
@coding_with_mukund
@coding_with_mukund 3 ай бұрын
Your comment made me very happy. Thank you.
@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
@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
@syedmuhammadnawazshah7687
@syedmuhammadnawazshah7687 14 күн бұрын
Great work brother. Searched a lot for this and finally found your video ❤❤
@coding_with_mukund
@coding_with_mukund 14 күн бұрын
Glad it helped
@hadicheayto2558
@hadicheayto2558 4 ай бұрын
thank you , you make my life easier
@coding_with_mukund
@coding_with_mukund 4 ай бұрын
Thank you, please share and subscribe.
@shuaibalghazali3405
@shuaibalghazali3405 Ай бұрын
Thanks a lot bro, you just got a subscriber this solved my mystery
@coding_with_mukund
@coding_with_mukund Ай бұрын
Thank you so much, please share with friends and family.
@viveks.
@viveks. 2 ай бұрын
Thank you!
@coding_with_mukund
@coding_with_mukund 2 ай бұрын
You're welcome! Please share and subscribe
@mafazkhan8996
@mafazkhan8996 4 ай бұрын
Wonderful tutorial staright to the point very helpful?
@coding_with_mukund
@coding_with_mukund 4 ай бұрын
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
@kunaldhopavkar
@kunaldhopavkar Ай бұрын
Thanks a lot sir
@coding_with_mukund
@coding_with_mukund Ай бұрын
So nice of you
@nattawutxp
@nattawutxp 4 ай бұрын
awesome
@coding_with_mukund
@coding_with_mukund 4 ай бұрын
Thank you for your precious feedback
@azulmouad4551
@azulmouad4551 Ай бұрын
thanks man
@coding_with_mukund
@coding_with_mukund Ай бұрын
Happy to help
@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
@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
@Sarfrozkhan
@Sarfrozkhan 12 күн бұрын
any php code ?? i mean i want to send notification from php file to android application!!!
@itsfantv2378
@itsfantv2378 Ай бұрын
Is there part 2 for this, sir?
@coding_with_mukund
@coding_with_mukund Ай бұрын
Yes, I'll upload the complete video soon.
@dinayousry8465
@dinayousry8465 2 ай бұрын
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 2 ай бұрын
Share your code to codingaigpt@gmail.com
@dinayousry8465
@dinayousry8465 2 ай бұрын
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 2 ай бұрын
@@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 2 ай бұрын
How can i do that
@coding_with_mukund
@coding_with_mukund 2 ай бұрын
@@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
@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.
@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
@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?
@casaurabhkhatri
@casaurabhkhatri 3 ай бұрын
I'm not using flutter. Just using android studio with java. How I do it?
@coding_with_mukund
@coding_with_mukund 3 ай бұрын
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 3 ай бұрын
@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 3 ай бұрын
@@casaurabhkhatri sure I'll upload soon
@casaurabhkhatri
@casaurabhkhatri 3 ай бұрын
Thanks bro 🙏 🙌
@gildaschadrac6885
@gildaschadrac6885 Ай бұрын
hello
@coding_with_mukund
@coding_with_mukund Ай бұрын
How can I help you?
KMP vs. Flutter - Who Will Win The Cross-Platform Battle?
16:19
Philipp Lackner
Рет қаралды 34 М.
你们会选择哪一辆呢#short #angel #clown
00:20
Super Beauty team
Рет қаралды 19 МЛН
Children deceived dad #comedy
00:19
yuzvikii_family
Рет қаралды 8 МЛН
ОСКАР ИСПОРТИЛ ДЖОНИ ЖИЗНЬ 😢 @lenta_com
01:01
Google API - Get Access Token and Refresh Token
2:52
LinuXamination
Рет қаралды 40 М.
Firebase Cloud Messaging API (V1) Flutter - Laravel
4:53
Abdallah Yassein
Рет қаралды 1,4 М.
tRPC, gRPC, GraphQL or REST: when to use what?
10:46
Software Developer Diaries
Рет қаралды 72 М.
#12 Android Notification Tutorial - HTTP V1 Access Token
12:18
Simplified Coding
Рет қаралды 15 М.