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'
@laithalsahore39507 күн бұрын
thx
@coding_with_mukund7 күн бұрын
Please share and subscribe
@z_verseau17 күн бұрын
An error occurred while accepting the terms of use. help me please
any php code ?? i mean i want to send notification from php file to android application!!!
@syedmuhammadnawazshah768728 күн бұрын
Great work brother. Searched a lot for this and finally found your video ❤❤
@coding_with_mukund28 күн бұрын
Glad it helped
@rakshithsb3227Ай бұрын
Is it possible to send notification between two apps? Client and Admin? Using same firebase project as well as same Android studio project.
@coding_with_mukundАй бұрын
Yes using tokens and some loops you can send notification to your users using admin app.
@rakshithsb3227Ай бұрын
@@coding_with_mukund Tried with topics. Its receiving only message notification but not data notification.( MyfirebaseServices not receiving any notification but notification popping up).
@rakshithsb3227Ай бұрын
@@coding_with_mukund what do you mean by loops? I tried i couldn't find any solution. If possible share some information.
@coding_with_mukundАй бұрын
@@rakshithsb3227 Method 1: While login you must get users token and store it in db and using for loop you can send notification to all those tokens. Method 2: Just register users for a topic and send notification to that topic. If you have more doubts I'll upload a video
can you upload same tutorial notification for flutter like send notification from website and received notification in flutter mobile app i implement same thing through FCM but now firebase disable the server key
@coding_with_mukundАй бұрын
I've uploaded a video to generate a server key in flutter and more parts will be uploaded soon.
@Flutter.dev_nАй бұрын
Thanks, helped a lot
@coding_with_mukundАй бұрын
Glad to hear 😊 please share and subscribe.
@furquanahmad846Ай бұрын
nice video but please upload the next video or complete video i got stuck in between bro
@coding_with_mukundАй бұрын
Ok I'll upload the complete video soon
@kunaldhopavkarАй бұрын
Thanks a lot sir
@coding_with_mukundАй бұрын
So nice of you
@tahseenkhan4698Ай бұрын
Error getting access token for service account: java.security.cert.CertPathValidatorException i am facing this issue.
@@coding_with_mukund got token successfully but there is volley client error i couldn't be able to resolve.. I'll send you the error screenshot in morning
@QaziSufiyan-nb1klАй бұрын
@@coding_with_mukund sent
@cherryt6853Ай бұрын
Hi at android java application developer generating token using gcm Sdk and this token is registered using azure Notification library(backend dotnet) at fcmv1notificatindescriptio. Method. At azure portal notification hub I have registered the private key, client mail, etc of fire base details. So my question could we use the gcm sdk based generated device token at fcmv1registryndescription method at backend? Possible?
@KrishNamasteАй бұрын
hey, please upload part 2 + i am having some doubts about this. is there any way i can connect with you? great video!
If you build again then new token will generate. Why not the same every time?
@coding_with_mukund2 ай бұрын
For security purposes, firebase made this like it refreshes tokens every time and every hour. So if tokens get compromised then it will get expired automatically after an hour.
@DailyStatusEarnMoney2 ай бұрын
@@coding_with_mukund How can we use it in PHP API if it is expiring every hour?
@chandpreet18 күн бұрын
@@DailyStatusEarnMoneyhaving same query...have you got any solution?
@shuaibalghazali34052 ай бұрын
Thanks a lot bro, you just got a subscriber this solved my mystery
@coding_with_mukund2 ай бұрын
Thank you so much, please share with friends and family.
@utkarshbhatnagar93332 ай бұрын
Thank you for your video. Is there way to send a prompt with text?
@coding_with_mukund2 ай бұрын
Yeah just add your prompt before text like, example: "You are a mathematician bot. User message: 'here add text field' "
@utkarshbhatnagar93332 ай бұрын
@@coding_with_mukund thank you. Also is there any way to encrypt the key or add rate limiter to protect from being exploited
@coding_with_mukund2 ай бұрын
@@utkarshbhatnagar9333 Use encrypt package and do AES encryption
@huso52792 ай бұрын
i did it like you, but my phone is still verified as an invalid device which means i have no access to firebase, (permission denied) do you know the solution? im trying debug mode on a physical device
@coding_with_mukund2 ай бұрын
You need to set as debug at initialisation of firebase appcheck and in Log you will get debug token and you need to paste it in firebase console in app check -> apps-> manage debug tokens
@huso52792 ай бұрын
@@coding_with_mukund i did It and i expected a debug Token but it didnt show Off in the console
@@coding_with_mukund thank you for the offer, i Just went Out so i ll do it as soon as im Home(after Like 8 hours) but which Code exactly? Eversthing specific for App Check? So Mai Activity, Main.dart and gradle?
@coding_with_mukund2 ай бұрын
@@huso5279 Ya share all code related code
@huso52792 ай бұрын
You alreayd did a video about this, IS this also necessary or like an Update?
@coding_with_mukund2 ай бұрын
I didn't understand you, can you tell me how I can help you
@huso52792 ай бұрын
@@coding_with_mukund is there a Chance to MSG you? Via Instagram? I t would ve very nice
@huso52792 ай бұрын
You already have a Video about App Check , so why have Recorded another video
@coding_with_mukund2 ай бұрын
@@huso5279 I have only two videos about app check and one is Java and another is flutter
@viveks.2 ай бұрын
Thank you!
@coding_with_mukund2 ай бұрын
You're welcome! Please share and subscribe
@iqaiserhussain2 ай бұрын
Can we do similar call in postman?
@coding_with_mukund2 ай бұрын
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.
@iqaiserhussain2 ай бұрын
@@coding_with_mukund is there any google Api available which can generate access token for me?
@arnonym15252 ай бұрын
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_mukund2 ай бұрын
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.
@adhycanno16812 ай бұрын
next video please ...
@coding_with_mukund2 ай бұрын
I have uploaded all 3 parts. Check out my channel
@mozesalex-andrei9812 ай бұрын
Can I use these classes for in-app messaging ?
@coding_with_mukund2 ай бұрын
What do you mean?
@mozesalex-andrei9812 ай бұрын
@@coding_with_mukund I have an application with 2 types of users: client and driver. In the client's activity I have a button that when pressed I want to send a message to the driver's activity (like a notification but inside the application, not outside)
@mozesalex-andrei9812 ай бұрын
Cloud Messaging is 2 types: notification and in-app message.
@coding_with_mukund2 ай бұрын
@@mozesalex-andrei981 yes, firebase.google.com/docs/in-app-messaging/get-started?platform=android use this link and add dependency
@abcabc26832 ай бұрын
Sir please share source code I have to submit project in 3 days , and I can't fetch access token pls sir help, please please 🙏🙏🙏
@mozesalex-andrei9813 ай бұрын
Thank you, my friend! I didnt understand why i need AccessToken class.
@coding_with_mukund3 ай бұрын
Access token is the main key for authorisation. Without an access token you cannot send notification.
@mozesalex-andrei9812 ай бұрын
@@coding_with_mukund i saw now :))) TY
@anshumandhal3 ай бұрын
Do I need to add the token as attestation in every network call I make through Retrofit ?
@coding_with_mukund3 ай бұрын
Yes
@anshumandhal3 ай бұрын
@@coding_with_mukund how do I do that ? I want to attach the firebase app check token to add to my retrofit network call header.
@coding_with_mukund3 ай бұрын
Can you explain your use case
@anshumandhal3 ай бұрын
@@coding_with_mukund I have a chat app, in which I want every single message sent to have an attestation which the server can validate. My backend server is in ktor. Without attestation, the server will send a 4xx
@anshumandhal3 ай бұрын
@@coding_with_mukund Yes, I have a chat app where every single message sent through retrofit needs to have an attestation attached so that the ktor backend can validate it through play integrity on Android side and I want to use Firebase app check to attach the attestation token.
@dinayousry84653 ай бұрын
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"
I used the same method you used, it worked once, and when I tried to use it again, it didn't work
@coding_with_mukund3 ай бұрын
@@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.
@dinayousry84653 ай бұрын
How can i do that
@coding_with_mukund3 ай бұрын
@@dinayousry8465 just call getaccesstoken () method where you put key while sending notification. Send your Fcm code to [email protected] and I'll help you
@mozesalex-andrei9813 ай бұрын
I cant understand what is not working. I wait the next video.
@coding_with_mukund3 ай бұрын
What happened? Can you send me log
@mozesalex-andrei9813 ай бұрын
@@coding_with_mukund I'm out of town until Sunday. I will send you after I try again on Sunday.
@coding_with_mukund3 ай бұрын
@@mozesalex-andrei981 sure. And also share your code I'll look into it.
@mozesalex-andrei9813 ай бұрын
@@coding_with_mukund I have not the laptop with me.
@mozesalex-andrei9813 ай бұрын
Please continue the tutorial. I need your help. I will donate you 10 dollars.
@coding_with_mukund3 ай бұрын
Sure I'll upload a migration video soon
@mozesalex-andrei9813 ай бұрын
@@coding_with_mukund Ty bro, if you have a patreon or another method of donation please place it.
@coding_with_mukund3 ай бұрын
I don't have a patreon, so please share my channel and subscribe.
@casaurabhkhatri3 ай бұрын
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_mukund3 ай бұрын
Sure, I'll upload as soon as I'm free
@casaurabhkhatri3 ай бұрын
@@coding_with_mukund Thanks bro!!
@Ayan-od8hk3 ай бұрын
Bro, I followed exactly but getting "Failed to exchange authorization code. Invalid server response."
How to read the serrvice-account json file instead of pasting directly like this?
@coding_with_mukund3 ай бұрын
You can store the file in local or in cloud storage and access it in code and convert it to json
@hyper-stack3 ай бұрын
@@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-qu7rw3 ай бұрын
@@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_mukund3 ай бұрын
@@inha-qu7rw in next video I'll show how to securely store json file.
@inha-qu7rw3 ай бұрын
@@coding_with_mukund Thanks!! It will be also useful if we could access the code from github or somewhere else
@sukronjazila85343 ай бұрын
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_mukund3 ай бұрын
I'll upload new video soon of complete implementation
@sukronjazila85343 ай бұрын
@@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
@sukronjazila85343 ай бұрын
@@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_mukund3 ай бұрын
@@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.