Acelerar o vídeo permite que você veja o conteúdo mais rápido e foque nas partes principais sem perder muito tempo.
@jozimarhenriques684811 күн бұрын
Thank you very much for this quality content, straight to the point and easy to understand.
@jurgencampos850515 күн бұрын
HI man! Now the Firebase Cloud Messaging Legacy is deprecated, it would be great to have a tutorial from you, with the most updated way of do it.
@CodeMender14 күн бұрын
@jurgencampos8505 check this kzfaq.info/get/bejne/adeChbhqz5aViok.htmlsi=pMcpBfaeeHBoOr5s
@kiumars-x1q23 күн бұрын
thank you so much
@user-dj9ud6vj3jАй бұрын
for production eas build the env is not getting load
@CodeMenderАй бұрын
Check the name of the env variable it should start with EXPO.
@keshavkaushlya8355Ай бұрын
how can i contact you? i want to ask many things im working on a live project , and want to enable notifications but this access token expires , also i want to know how send notifications to multiple users and how to automate the regeneration of access token and send it to url ?? HELP ME PLEASE!!!!!!!!!!!!!!!!
@CodeMenderАй бұрын
Its because it's a temporary token. If You are using a backend depend on that backend there are ways to create a token with an expiration date and time.
@ajinkyamandavkar973Ай бұрын
How does backend configuration for push notification to android & iOS flutter platform works. Does it uses simple curL calls. Then from where backend gets the fcm_token generated inside the app(android/iOS). If possible explain backend setup too.
@CodeMenderАй бұрын
Each language has a different method or packages for that , you do not need to use the curl statement for your android and ios configuration if you are using a backend.
@nerdycuberАй бұрын
Veru helpful
@computerscience39052 ай бұрын
i am getting this error Unhandled Exception: 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
@CodeMender2 ай бұрын
Check the grant values you are adding if you are not adding anything add exp anf iat for your token in the function for generation token
@KevinFranco-yd5nt2 ай бұрын
Thank you very much, now I understand why this video was recommended by Gemini
@MuhammadAhmedLashari-px8qh2 ай бұрын
i am getting the above two statements on terminal successfully but aren't receiving the notification on device screen. Can you please help me in that? I/flutter (29003): FCM message sent successfully D/FLTFireMsgReceiver(29003): broadcast received for message
@CodeMender2 ай бұрын
The firebase push notification is only shown for background notification for foreground notification you need to customize toast or alert.
@samelobinna1012 ай бұрын
thanks a lot you save my day (:
@amirhaider-gc9ww2 ай бұрын
Failed to send FCM message: 404
@CodeMenderАй бұрын
Check your permissions once more
@kyungsooswifeu82402 ай бұрын
You're such a savior thank youuuu
@chomanthapa2 ай бұрын
Nice job, followed each step but my counter is not updating dynamically, for example if i increment nothing changes in the widget it actually take s around 10 -15 mins to update the widget why ?
@CodeMenderАй бұрын
Check the time in the flutter you have for sending used.
@Alabfa2 ай бұрын
You are a life saver thank you so much <3
@radish1212 ай бұрын
dude, seriously, thank you so soo soooo much, can't figure this out for a couple of days now and almost gave up. literally a life saver <333333
@CodeMender2 ай бұрын
Glad I could help!
@user-vd6xi9bf3m2 ай бұрын
Hey, Thank you soooo much, you saved my day:)
@CodeMender2 ай бұрын
You are welcome!
@ratannaik4732 ай бұрын
Hey @CodeMender could you show how to eas build for ios device
@CodeMender2 ай бұрын
Sure
@NostalgiaBeats-zo4ds3 ай бұрын
please give me a source code
@CodeMender2 ай бұрын
Added in the description
@godehiyane20913 ай бұрын
thanks sir
@hhaa47443 ай бұрын
Hi, I would like to send the message through a specific event in the realtime database instead of sending it manually using publish. How can I link between FCM and realtime database?
@CodeMender3 ай бұрын
Use firebase function in the backend with your realtime database
@istiakahmed30333 ай бұрын
You have not provided any link or ref of the code you copy pested. Sad!
@CodeMender2 ай бұрын
Check the description
@hashWorld-03 ай бұрын
plz do this in dio dio interceptors whats the difference?
@CodeMender2 ай бұрын
Ok
@shuaibalghazali34053 ай бұрын
Not so explanatory 😢😢
@CodeMender3 ай бұрын
I'm sorry to hear that! If you provide more context or clarify what you'd like to know about video comments, I'd be happy to help. 😊
@shuaibalghazali34053 ай бұрын
@@CodeMender how can I generate access token please, I already have my service key and json file
@CodeMender3 ай бұрын
Create Scopes for which you want to allow the authorization when using the access token. Create a client using your JSON file by HTTP package and use the googleapis package to get credentials by sending client, scopes and ServiceAccountCredentials from the json file. You will get accessToken in the credentials.
@shuaibalghazali34053 ай бұрын
@@CodeMender thanks
@AdhamFaisal8753 ай бұрын
please upload source code
@CodeMender3 ай бұрын
github.com/CodeMender1204/FlutterPushNotification
@yagnikbarasiya88623 ай бұрын
Why there is no video of sign in with apple in you channel you don't know how to do?
so these notifications are push is there any other notifications also? i think foreground background and kill mode ..is this notification is work on all these modes???
@CodeMender3 ай бұрын
Notification messages which arrive while the application is in the foreground will not display a visible notification by default, on both Android and iOS. It is, however, possible to override this behavior: On Android, you must create a "High Priority" notification channel. On iOS, you can update the presentation options for the application.
@hashWorld-03 ай бұрын
thnakssssss alotttt do a tuotoral on dio interceptors with api and must foloow mvc architecture
I think this is a good video even though u didn't speak.however Is it a must I use android studio to make that widget? Can't vscode do it or can't u just share the code
@CodeMender3 ай бұрын
As this video is on native widgets , I have used android studio. VsCode Can do it for android but widget designing is easy with android studio.
@HalimHalim-xf7zo3 ай бұрын
you are so fast and you don't explain well, you dont know how to explain to people
@CodeMender3 ай бұрын
I understand your concern. If you're finding my responses too quick, you can adjust the playback speed to 0.5x to follow along more comfortably.
@hashWorld-03 ай бұрын
i have this error how to resolve this * What went wrong: Execution failed for task ':app:checkDebugDuplicateClasses'. > A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable > Duplicate class kotlin.collections.jdk8.CollectionsJDK8Kt found in modules jetified-kotlin-stdlib-1.8.0 (org.jetbrains.kotlin:kotlin-stdlib:1.8.0) and jetified-kotlin-stdlib-jdk8-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10)
@CodeMender3 ай бұрын
Check your build.gradle you seemed to have added two versions of kotlin.
@hashWorld-03 ай бұрын
@@CodeMender i checked but it is not dublicated look buildscript { repositories { google() mavenCentral() } dependencies { classpath 'com.google.gms:google-services:4.3.8' // Add this line } } allprojects { repositories { google() mavenCentral() } } rootProject.buildDir = '../build' subprojects { project.buildDir = "${rootProject.buildDir}/${project.name}" } subprojects { project.evaluationDependsOn(':app') } tasks.register("clean", Delete) { delete rootProject.buildDir } buildscript { ext.kotlin_version = '1.5.0' // Change this to the version you're using in your Flutter project // Other configurations } this is my build.gradle
@hashWorld-03 ай бұрын
@@CodeMender i added theese line in build.gradle and thi will resolve my issue i dont know what tha mean but it works subprojects { project.configurations.all { resolutionStrategy { force "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" force "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" } } }
@CodeMender3 ай бұрын
You have two build scripts.Change the second one version to the same as kotlin version variable.
@faheemahmad39573 ай бұрын
make a second part of it,, also use laravel backend to send etc
@CodeMender3 ай бұрын
Will work on it soon.
@WebandMobileDevelopment-io5ex4 ай бұрын
Thank You😘
@Marketplace-fm8mg4 ай бұрын
where to get client_id and client_secret by using post man
@CodeMender4 ай бұрын
To obtain the client_id and client_secret: Navigate to the Google Cloud Console, access the service account section, and generate a key. The JSON file will contain the necessary client_id and client_secret. To get the bearer token in Postman follow these steps: 1. Utilize Google OAuth Playground to authorize API access by Entering your OAuth client ID and client secret (obtained from Google Cloud Console). 2. Specify your desired scopes for Firebase Cloud Messaging (FCM) by accessing this URL: www.googleapis.com/auth/firebase.messaging 3. Click on "Authorize APIs" and go through the authorization process. Exchange the authorization code for tokens. The access token serves as your Bearer token.
@Velosi-uf2de4 ай бұрын
please share a code Thank you
@CodeMender4 ай бұрын
Added the Github repo link in description.
@WebandMobileDevelopment-io5ex4 ай бұрын
@@CodeMender Thank You Dear
@bhaveshharne40694 ай бұрын
how do I solve this error "Plugin with id 'com.google.gms.google-services' not found."..couldn't solve it..tried a lot..I am learning how to integrate firebase into react native but it is not coming off.Can you please make a video on how to integrate it successfully..Thankyou for listening..Would be grateful if you make a video..Thankyou
@CodeMender4 ай бұрын
You can use flutter clean and then flutter run command in terminal in root folder. It should solve your issue.
@namumakwembo4 ай бұрын
How can i get the firebase_options.dart file ?, it was not created automatically in my case
@CodeMender4 ай бұрын
Try to reconfigure using the flutter fire command given in the steps in the firebase console. Also see if you are getting any warning when you activate the flutter fire cli using dart pub command.
@RafaelAlves-rh2fx4 ай бұрын
sad, I did everything like the video. the token arrives, the same terminal output, but when I send the notification it does not appear on the device... terminal: BUNDLE ./index.js LOG Running "PushNotification" with {"rootTag":11} LOG Authorization status 1 LOG FCM token ------------------------xxxxx------------xxxxx-------------- WARN Unverified navigationId undefined LOG A new FCM message arrived! {"collapseKey": "com.pushnotification", "data": {"navigationId": "settings"}, "from": "809794678973", "messageId": "0:1712907575137436%3188d5d23188d5d2", "notification": {"android": {"channelId": "hiii", "sound": "default"}, "body": "Firebase Push Notification", "title": "hi"}, "sentTime": 1712907544997, "ttl": 2419200}
@CodeMender4 ай бұрын
@RafaelAlves-rh2fx The Notification is coming correctly. As you can see the log A new FCM message arrived! {"collapseKey": "com.pushnotification", "data": {"navigationId": "settings"}, "from": "809794678973", "messageId": "0:1712907575137436%3188d5d23188d5d2", "notification": {"android": {"channelId": "hiii", "sound": "default"}, "body": "Firebase Push Notification", "title": "hi"}, "sentTime": 1712907544997, "ttl": 2419200} The problem is in the React native navigation function check if you are setting your navigationId in double or single quotes. If it is in single quotes change it to double quotes as in javascript it can be seen differently because the JSON data is in double quotes. Hope this helps!
@sncodext4 ай бұрын
how to schedule notification using firebase messaging ? just like we manually configure the campain for scheduling notfication
@CodeMender4 ай бұрын
To schedule notifications using Firebase Cloud Messaging (FCM) for multiple devices, you typically need a server or backend system that sends notification requests to the FCM servers at the scheduled time. One approach is to utilize the subscribeToTopic("topic") function provided in the FCM documentation to manage multiple device subscriptions to a specific topic.
@sncodext4 ай бұрын
@@CodeMender yeah i see about send notification thorough subscription but it will not scheduled the notification, as we like schedule the campaign
@CodeMender4 ай бұрын
Use firebase functions and pubsub.schedule method to schedule notification in your backend.
@kirito73354 ай бұрын
Keep up the good work.
@kirito73354 ай бұрын
Can u provide the source code
@CodeMender4 ай бұрын
Added the link in description
@CokyCokino4 ай бұрын
Hi, are you planning to make same tutorials with Firebase & Expo 50 SDK?
@CodeMender4 ай бұрын
Yes, I'm planning to create tutorials covering the use of Firebase with the latest Expo 50 SDK.
@Jim-lw1jw4 ай бұрын
That was a really helpful video, thank you so much! Could you do the same step by step tutorial with an iOS simulator? I'm struggling with the configuration for iOS 😓
@CodeMender4 ай бұрын
Yes, soon
@Cappell7Ай бұрын
@@CodeMender Did you ever do a iOS video?
@zlackbiro4 ай бұрын
Why legacy API when API v1 is better and easier to use?
@CodeMender4 ай бұрын
@blackzerosrb One reason I haven't migrated yet is that sending messages with the new API requires setting up OAuth authentication, and I'm planning to add OAuth integration to my project first before transitioning to the FCM API. I stuck with the legacy API initially due to familiarity, but I definitely plan to migrate to the FCM API after adding OAuth support to take full advantage of its improvements and ensure long-term support. Appreciate you bringing this up!