How to get Access Token in the new Firebase Cloud Messaging V1 HTTP | Android Studio Java | Part 1

  Рет қаралды 2,427

Coding with Mukund

Coding with Mukund

4 ай бұрын

Are you ready to dive into the intricacies of Firebase Cloud Messaging (FCM) in your Android Studio projects? Welcome to Part 1 of our comprehensive guide on implementing FCM HTTP V1 in Java! In this tutorial series, we'll walk you through the process of generating access tokens seamlessly, empowering you to enhance your app's messaging capabilities.
Unlock the full potential of FCM by mastering its HTTP V1 protocol. Whether you're a seasoned developer or just starting your journey in Android app development, this tutorial series is designed to cater to all skill levels.
In this first installment, we'll lay the foundation by delving into the fundamental concepts of FCM HTTP V1. You'll gain a clear understanding of how FCM operates within the Android Studio environment, and we'll guide you through the step-by-step process of generating access tokens. By the end of this tutorial, you'll be equipped with the knowledge and tools necessary to seamlessly integrate FCM into your projects.
Stay tuned for upcoming parts in this series, where we'll explore advanced topics such as message sending, error handling, and optimizing FCM for your specific use cases. Whether you're looking to implement push notifications, real-time messaging, or app-to-app communication, mastering FCM is essential for delivering a seamless user experience.
Join us on this exciting journey as we unravel the complexities of FCM HTTP V1 implementation in Android Studio using Java. Don't miss out on the opportunity to elevate your app development skills and stay ahead of the curve. Hit the subscribe button and turn on notifications to stay updated with the latest tutorials!
If you're ready to take your Android development skills to the next level, then let's dive right in and explore the world of FCM together. Welcome to Part 1 of our FCM HTTP V1 tutorial series - let's get started!
Dependency:
implementation 'com.google.auth:google-auth-library-oauth2-http:1.19.0'
Endpoint URL : www.googleapis.com/auth/fireb...
Copy this and paste it inside Build.gradle file
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
}
#fcmobile #fcm #firebase #java #google #androidstudio

Пікірлер: 54
@verybest
@verybest 2 ай бұрын
You are the genius! Thanks for the video and it worked very well.
@KekeAmigable
@KekeAmigable 3 ай бұрын
THANK YOU VERY MUCH BRO FOR YOUR EFFORT, KEEP DOING, YORE AMAZING
@coding_with_mukund
@coding_with_mukund 3 ай бұрын
Thank you, I will try my best ☺️
@casaurabhkhatri
@casaurabhkhatri 3 ай бұрын
Thanks a lot brother. I'll implement it today and will comment my result. Much appreciated!!!!!!!
@coding_with_mukund
@coding_with_mukund 3 ай бұрын
If there's any issue let me know.
@casaurabhkhatri
@casaurabhkhatri 3 ай бұрын
@@coding_with_mukund Bro it worked. I'm so much thankful to you that you published this video. I was searching for this solution from a week and was thinking to give up but you helped me and save me. Thanks!!!!!!
@coding_with_mukund
@coding_with_mukund 3 ай бұрын
Welcome, and I'm happy to hear this from you. Still if you want any kind of videos please suggest me and I'll upload it.
@casaurabhkhatri
@casaurabhkhatri 3 ай бұрын
@@coding_with_mukund Although I've done it but for audience it is very trending to send notification from device to device in one complete video, as the old FCM legacy API is deprecated and users must move to new FCM HTTP V1 before Jun, 2024, there is no complete video as of today. So this is highly suggested as per me.
@coding_with_mukund
@coding_with_mukund 3 ай бұрын
@@casaurabhkhatri sure I'll upload complete migration video soon
@Rohan_is_discovering
@Rohan_is_discovering Ай бұрын
Thanks a lot!!
@coding_with_mukund
@coding_with_mukund Ай бұрын
Please share and subscribe 😄
@sukronjazila8534
@sukronjazila8534 3 ай бұрын
How i can send FCM messaging from postman using FCM http V1. I'm so confuse about the key authorization. Is there anybody can help me
@coding_with_mukund
@coding_with_mukund 3 ай бұрын
I'll upload new video soon of complete implementation
@sukronjazila8534
@sukronjazila8534 3 ай бұрын
​@@coding_with_mukundthank you very much. Your video is so helpful. I follow your video to get authorizarion key and paste it to postman. But if there is another solution dont forget to share it and i'm waiting for it
@sukronjazila8534
@sukronjazila8534 3 ай бұрын
​@@coding_with_mukundbtw is there any solution to keep the authorization key keep the same all the time? If i want this solution what should i do
@coding_with_mukund
@coding_with_mukund 3 ай бұрын
@@sukronjazila8534 no you cannot keep them same, as they get refreshed every hour, which is so useful in securing your keys. They made it this way to keep your data safe.
@GameOfTiroPs3
@GameOfTiroPs3 6 күн бұрын
Where can I get the "Google credentials" class? To me it appears that this class does not exist.
@skat3_EveryD4y
@skat3_EveryD4y 6 күн бұрын
For me too
@coding_with_mukund
@coding_with_mukund 6 күн бұрын
Share the code and error to codingaigpt@gmail.com
@coding_with_mukund
@coding_with_mukund 6 күн бұрын
Share the code and error to codingaigpt@gmail.com
@coding_with_mukund
@coding_with_mukund 6 күн бұрын
You guys have not added dependency. So it's showing an error. add this dependency "implementation 'com.google.auth:google-auth-library-oauth2-http:1.23.0'
@tahseenkhan4698
@tahseenkhan4698 Ай бұрын
Error getting access token for service account: java.security.cert.CertPathValidatorException i am facing this issue.
@coding_with_mukund
@coding_with_mukund Ай бұрын
Send your code to codingaigpt@gmail.com
@tahseenkhan4698
@tahseenkhan4698 Ай бұрын
now issue is resolved, issue occurred when internet not working.🙂
@dagumaileen1429
@dagumaileen1429 2 ай бұрын
hi can you help me?idont understand in part in dashboardactivity.java i think i have missing parts like the promptlayout and dialogprompt
@coding_with_mukund
@coding_with_mukund 2 ай бұрын
In the dashboard I just implement code to send notification, which can be used anywhere you want to send notification.
@dagumaileen1429
@dagumaileen1429 2 ай бұрын
@@coding_with_mukund can you help me? it i didnt see the token even i followed your step precisely
@coding_with_mukund
@coding_with_mukund 2 ай бұрын
@@dagumaileen1429 share your code to codingaigpt@gmail.com
@dagumaileen1429
@dagumaileen1429 2 ай бұрын
@@coding_with_mukund i already send it ty
@Asonachannel
@Asonachannel Ай бұрын
can u share this code?
@coding_with_mukund
@coding_with_mukund Ай бұрын
Contact me through codingaigpt@gmail.com and I'll share you the code
@casaurabhkhatri
@casaurabhkhatri 3 ай бұрын
Hi Brother, can you make a video on how to setup pagination to retrieve firestore data in recyclerview using java. The more records to be fetched only when user scroll down.
@coding_with_mukund
@coding_with_mukund 3 ай бұрын
Sure, I'll upload as soon as I'm free
@casaurabhkhatri
@casaurabhkhatri 3 ай бұрын
@@coding_with_mukund Thanks bro!!
@hyper-stack
@hyper-stack 3 ай бұрын
How to read the serrvice-account json file instead of pasting directly like this?
@coding_with_mukund
@coding_with_mukund 3 ай бұрын
You can store the file in local or in cloud storage and access it in code and convert it to json
@hyper-stack
@hyper-stack 3 ай бұрын
@@coding_with_mukund I save the file in my app directory (same directory as the google-services.json), but wehn I try to read it using FileInputStream("service-account.json") like this, I always get the error for file not found. How can I get the path to the file in my app dir. Thank you!
@inha-qu7rw
@inha-qu7rw 3 ай бұрын
@@coding_with_mukund can you please explain how to do it securely? in docs they say that all FCM's sendings should be from trusted server.. Thanks!
@coding_with_mukund
@coding_with_mukund 3 ай бұрын
@@inha-qu7rw in next video I'll show how to securely store json file.
@inha-qu7rw
@inha-qu7rw 3 ай бұрын
​@@coding_with_mukund Thanks!! It will be also useful if we could access the code from github or somewhere else
@abhinavbishnoi6679
@abhinavbishnoi6679 Ай бұрын
Can you please make video or help on ios as well to get token for postman firebase push
@coding_with_mukund
@coding_with_mukund Ай бұрын
Soon I will upload
@piyushdalvi5544
@piyushdalvi5544 3 ай бұрын
Does the token expire?
@coding_with_mukund
@coding_with_mukund 3 ай бұрын
Yes, tokens get refreshed every time. You need to pass getToken() method directly to the header where you will place your key.
@yusufguler1795
@yusufguler1795 Ай бұрын
Hello brother , i liked the video , can u share source of project
@coding_with_mukund
@coding_with_mukund Ай бұрын
I'll share it soon
@yusufguler1795
@yusufguler1795 Ай бұрын
@@coding_with_mukund okey i'll be waiting
@mozesalex-andrei981
@mozesalex-andrei981 3 ай бұрын
Please continue the tutorial. I need your help. I will donate you 10 dollars.
@coding_with_mukund
@coding_with_mukund 3 ай бұрын
Sure I'll upload a migration video soon
@mozesalex-andrei981
@mozesalex-andrei981 3 ай бұрын
@@coding_with_mukund Ty bro, if you have a patreon or another method of donation please place it.
@coding_with_mukund
@coding_with_mukund 3 ай бұрын
I don't have a patreon, so please share my channel and subscribe.
Now THIS is entertainment! 🤣
00:59
America's Got Talent
Рет қаралды 38 МЛН
孩子多的烦恼?#火影忍者 #家庭 #佐助
00:31
火影忍者一家
Рет қаралды 52 МЛН
New model rc bird unboxing and testing
00:10
Ruhul Shorts
Рет қаралды 23 МЛН
Firebase Cloud Messaging API (v1) Tutorial
9:13
Native Notify
Рет қаралды 65 М.
#12 Android Notification Tutorial - HTTP V1 Access Token
12:18
Simplified Coding
Рет қаралды 15 М.
Difference between cookies, session and tokens
11:53
Valentin Despa
Рет қаралды 603 М.
How to create a Firebase server key | How to get Firebase server key
5:11
How to Implement Firebase Push Notifications on Android (FCM + Backend)
1:06:31
Now THIS is entertainment! 🤣
00:59
America's Got Talent
Рет қаралды 38 МЛН