Complete Flutter Firebase iOS Push Notification | Step by Step

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 พ.ย. 2024

ความคิดเห็น • 150

  • @katlegosekgethela557
    @katlegosekgethela557 24 วันที่ผ่านมา

    This really helped me a lot I spend days trying to figure out what was happening since we inherited the project and Firebase APNs was already setup however it did not match with organisation so once I updated the keys it started working. Thanks even 2 years later this video is helpful

  • @mihirman8131
    @mihirman8131 2 ปีที่แล้ว +16

    this is the best tutorial I could find, thank you!

    • @dbestech
      @dbestech  2 ปีที่แล้ว +1

      Glad it helped!

  • @AbdurRehman-lf6rw
    @AbdurRehman-lf6rw ปีที่แล้ว +2

    This is the right way for implementating ios notifications using flutter. thanks

    • @dbestech
      @dbestech  ปีที่แล้ว

      Happy to help

  • @dangdatraymonddelmut3230
    @dangdatraymonddelmut3230 2 ปีที่แล้ว +2

    Great and most comprehensive tutorial on Push Notification with iOS

    • @dbestech
      @dbestech  2 ปีที่แล้ว

      Glad you think so!

  • @ankitrajput85
    @ankitrajput85 11 หลายเดือนก่อน

    Thanks man! This worked finally after 2 days of wasting my time. Official documentation sucks.

    • @dbestech
      @dbestech  11 หลายเดือนก่อน +1

      thanks a lot

    • @belveloper
      @belveloper 6 หลายเดือนก่อน

      Do you have a business apple dev account or personal one ? Because dbstech says that it's important to get a business one ???

  • @drhuntoon
    @drhuntoon ปีที่แล้ว

    THANK YOU! I wasted just 4 hours on useless other tutorials that TH-cam suggested first

  • @olagisrarikis
    @olagisrarikis 10 หลายเดือนก่อน

    You solved my problem, no one talked about the APN auth key in other tutorials...

    • @belveloper
      @belveloper 6 หลายเดือนก่อน

      Is the business apple dev account necessary to receive notifications because I'm not a company so I don't have the DNUS number

  • @tefaloveallah
    @tefaloveallah ปีที่แล้ว

    After about 4 days of trying, U finally saved me 😂 , You deserved a coffee❤

    • @dbestech
      @dbestech  ปีที่แล้ว +1

      haha. Ok where's the coffee?

  • @arzargaryan
    @arzargaryan 5 หลายเดือนก่อน

    The best tutorial. You saved my time! thank you :)

    • @dbestech
      @dbestech  5 หลายเดือนก่อน

      Glad it helped!

  • @takirajani2693
    @takirajani2693 ปีที่แล้ว +1

    thank you sir, can you please explain how to open particular screen on receive notification. I have created one project asper this tutorial but i am not able to redirect specific screen on tap of notification. please help me on this.

    • @ruslankandiba
      @ruslankandiba ปีที่แล้ว

      Hello. could you solve this case?

  • @petermounir9314
    @petermounir9314 2 ปีที่แล้ว +2

    Thanks for this awesome video. it help me a lot.

    • @dbestech
      @dbestech  2 ปีที่แล้ว

      Glad it helped!

  • @danielmafileo4078
    @danielmafileo4078 ปีที่แล้ว

    For the app dev status, rather than business account, will it work with individual account? (this is different from personal account)

    • @dbestech
      @dbestech  ปีที่แล้ว

      for debugging, personal account should work. for releasing it should be biz account.

  • @howididit917
    @howididit917 ปีที่แล้ว

    This was very helpful and straight forward. Thank you

  • @shubhamsaurabh202
    @shubhamsaurabh202 2 ปีที่แล้ว +1

    Please make a video for onclick notification redirect to the desised page.

    • @dbestech
      @dbestech  2 ปีที่แล้ว +1

      Ok. I will

  • @rodrodrigues1729
    @rodrodrigues1729 ปีที่แล้ว

    This is awesome! LIFE SAVER! Thank you!

    • @dbestech
      @dbestech  ปีที่แล้ว

      Glad it helped!

    • @rodrodrigues1729
      @rodrodrigues1729 ปีที่แล้ว

      @@dbestech would you recommend using await FirebaseMessaging.instance.setAutoInitEnabled(true);

  • @fadysaoudy1813
    @fadysaoudy1813 2 ปีที่แล้ว +1

    perfect tutorial

    • @dbestech
      @dbestech  2 ปีที่แล้ว

      Most welcome

  • @redarezzag2086
    @redarezzag2086 ปีที่แล้ว

    22:33 Hi bro if it didn't show up, and you have personal account you have to go to your account developer and activate push notification from there and it will show

    • @belveloper
      @belveloper 6 หลายเดือนก่อน

      Thanks man i thought it is obligatory to get a business account
      Could you please tell me where to find the push notification service in my dev account

  • @ruslankandiba
    @ruslankandiba ปีที่แล้ว

    Great tutorial. Thaks you

    • @dbestech
      @dbestech  ปีที่แล้ว

      You are welcome!

  • @mustafasahin7867
    @mustafasahin7867 2 ปีที่แล้ว

    Does it have to be a physical device, can't I do this with the simulator?

    • @dbestech
      @dbestech  2 ปีที่แล้ว +1

      yes, it has to be a physical device.

  • @dasun1093
    @dasun1093 ปีที่แล้ว

    can we send specific time to API to send notification ?

    • @dbestech
      @dbestech  ปีที่แล้ว

      You need to set up cron job in your server, that could do the job.

  • @mubasheransari498
    @mubasheransari498 2 ปีที่แล้ว

    is it necessary to create new key if we'hv existing key and second we need new certificates when we'hv already have a certificate? please answer im stucked in ios push notifications its working fine for me in android. thanks in advance.

    • @dbestech
      @dbestech  2 ปีที่แล้ว

      Ok. I know the frustration. I experienced the same. To be able to work with this I had to repeat the steps 2 or 3 times. Each time I did a fresh one. of course, you can generate unlimited certificates and keys. So there is no gaurantee it would work first. In my case, I made a very small for testing rather the real app. You should try in a very small app

  • @aprop-siandorra8050
    @aprop-siandorra8050 2 ปีที่แล้ว +1

    Great tutorial! Thank you!

    • @dbestech
      @dbestech  2 ปีที่แล้ว

      You're very welcome!

  • @hice24sale
    @hice24sale 2 ปีที่แล้ว +3

    Hi, .thanks for the video. the most important part was customizing a code on Xcode. and you skipped it (You just showed it there was no any step by step on Xcode in your video). flutter crashed after that, FirebaseApp.configure and your second function. the app went to crash and didn't build it. even I tried to add packages of firebase-SDK through Xcode to the project .but didn't work.

    • @dbestech
      @dbestech  2 ปีที่แล้ว

      Tell me the eeeor you get. I will try help you

  • @dhruvinprajapati4345
    @dhruvinprajapati4345 2 ปีที่แล้ว

    hey there,
    Firstly thank you so much for making this video,
    this is really help for me,
    I just tell you that,
    my notification work without adding "application" func on appdelegate,
    when I add that it will giving me and error while I build my app,
    so please check it once
    thank you

    • @dbestech
      @dbestech  2 ปีที่แล้ว

      Glad I could help. I will check as well

  • @gyanupadhyay9473
    @gyanupadhyay9473 ปีที่แล้ว

    plz tell us how to configure firebase dynamic links for ios?

  • @maurizioperrucci4895
    @maurizioperrucci4895 2 ปีที่แล้ว

    Hi, i'd like to know if notifications work correctly when app (in iOS) is terminated. In background and foreground it's ok. When app is close (terminated) i receive notifications, and on click the app starts, but the notification is no more visible and not handling. Do you have some fixing for this behaviour?

  • @omidkarami4312
    @omidkarami4312 ปีที่แล้ว

    Thanks so much for the video!

  • @FarmanKhan-c3r
    @FarmanKhan-c3r ปีที่แล้ว

    great tutorial can you send the link of code

  • @muhammadsyafiqmdasri3186
    @muhammadsyafiqmdasri3186 2 ปีที่แล้ว

    assalamualaikum..i want to ask that if i do this ios, is it can use for android too without coding again?using the same project?

    • @dbestech
      @dbestech  2 ปีที่แล้ว

      Yes, the coding part no need to change.

  • @coopcab3940
    @coopcab3940 2 ปีที่แล้ว +1

    BackgroudMessage callback is not triger in IOS when app is on background

    • @dbestech
      @dbestech  2 ปีที่แล้ว +1

      I will make a new one about it.

    • @fatehsingh8848
      @fatehsingh8848 2 ปีที่แล้ว +1

      Any update on this?

    • @mustafasahin7867
      @mustafasahin7867 2 ปีที่แล้ว +1

      @@dbestech Hello, I'm looking forward to this.

  • @Juliapak
    @Juliapak 2 ปีที่แล้ว +1

    You don't need a business account to do push notification.. I'm only on the $99/yr plan and I have it... Otherwise great tutorial!!

    • @dbestech
      @dbestech  2 ปีที่แล้ว

      Thanks for the info!

  • @shahaftepler985
    @shahaftepler985 2 ปีที่แล้ว

    Hey, can you specify why would you use POSTMAN or a server? to clarify, If I want to use firebase only for the notifications, wouldn't it be enough?
    Thank you.
    Also, I have went through your video step by step but I don't seem to get any message, whilst I tried with the Android device and it worked.
    Can you advise maybe?
    Thanks.

    • @dbestech
      @dbestech  2 ปีที่แล้ว

      With postman you can verify that it will work or not. Because postman will report you an error. But firebase dashboard does not report you error. Postman is just for testing. In real life you would send message from server to firebase and then firebase would send message to the mobiles.

    • @shahaftepler985
      @shahaftepler985 2 ปีที่แล้ว

      @@dbestech Thanks for the quick reply. Will it be a problem using only firebase without the server? Guiding my client to use the firebase interface and setting the campaigns from there.
      Also, if I already caught you here, would you be kind enough to assist me to find the issue of the notifications not getting sent to the device?
      I have followed your guide and don't seem to find the issue.
      Thanks anyway

    • @dbestech
      @dbestech  2 ปีที่แล้ว

      @@shahaftepler985 Yes, you should use server. not firebase directly. Only sending from server makes it gauranteed to send message successfully.

  • @abdulrasheedkareem1717
    @abdulrasheedkareem1717 ปีที่แล้ว

    this is very helpful 😍😍😍😍😍

    • @dbestech
      @dbestech  ปีที่แล้ว

      I'm so glad!

  • @oh-my-lord
    @oh-my-lord ปีที่แล้ว +1

    Can you upload your AppDelegate.swift please?

  • @mustafasahin7867
    @mustafasahin7867 2 ปีที่แล้ว

    Hello, I'm wondering something. Can I evaluate the notification from firebase based on data while the app is in the background on an ios device?
    In other words, I want to write a "show notification or don't show notification" function according to the data. Also, I want to show the notification with the flutter_local_notifications package, not with firebase, while in the background.
    I've been dealing with this for the last two weeks, please tell me it's possible.
    thank you

    • @mustafasahin7867
      @mustafasahin7867 2 ปีที่แล้ว

      Please I really need help with this. I've been struggling for days.

    • @sameerpathan9110
      @sameerpathan9110 2 ปีที่แล้ว

      Yes I'm also facing this issue

    • @mustafasahin7867
      @mustafasahin7867 2 ปีที่แล้ว

      @@sameerpathan9110 if i can solve it i will write it here for you. Please write here if you get a working result.

  • @abdulwahabkhan4316
    @abdulwahabkhan4316 2 ปีที่แล้ว

    very well explained ... jzak ALLAH...

  • @Hakan-sr7ue
    @Hakan-sr7ue ปีที่แล้ว

    this code working if app closed?

    • @dbestech
      @dbestech  ปีที่แล้ว

      yes, it does

  • @stephaneadigoun4033
    @stephaneadigoun4033 ปีที่แล้ว

    I not get push notification after implement your tutorial. Please help me

  • @axroromonov9837
    @axroromonov9837 ปีที่แล้ว

    hi bro, I don't see badges for ios, what can I do, I send campaigns through another server

  • @sanaishaque
    @sanaishaque ปีที่แล้ว +1

    from postman i am receiving { "error": "NotRegistered"}, followed all the steps. pls help

    • @AkshayGupta-qb1yn
      @AkshayGupta-qb1yn ปีที่แล้ว

      Yes i am having same problem can you tell me hoe you resolved it?

  • @Tech1st
    @Tech1st 2 ปีที่แล้ว

    Can we make custom layout notification ? Pls make videos about this

    • @dbestech
      @dbestech  2 ปีที่แล้ว

      It does have a layout if you watched the video.

  • @kavin7285
    @kavin7285 2 ปีที่แล้ว

    Is there any way I can do this without a developer account?

    • @dbestech
      @dbestech  2 ปีที่แล้ว

      No, it's not possible.

  • @codewithibad2210
    @codewithibad2210 2 ปีที่แล้ว

    Aoa sir, i hope you are fine sir i done the firebase notification from api when app is terminated it work very well but after few hours it doesn't work and when i open it again it will initialize it and start working but same problem after few hours, sir kindly explain me what i can do for that ??

    • @dbestech
      @dbestech  2 ปีที่แล้ว +1

      to have a better controlle on the notification, you should call the notification from your own server. don't directly call the notifcations from the firebase server. in my case, I use my server to talk to firebase server. So I can controll when I want to get notifcation

  • @aldave9083
    @aldave9083 2 ปีที่แล้ว

    suggestion add preview of the output in intro

    • @dbestech
      @dbestech  2 ปีที่แล้ว

      Ok next time

  • @diegogiardinetto6328
    @diegogiardinetto6328 2 ปีที่แล้ว +1

    Really solved my day...

    • @dbestech
      @dbestech  2 ปีที่แล้ว

      Happy to help

  • @Tech1st
    @Tech1st 2 ปีที่แล้ว

    Can we make ios always showing local notification . Even close the app

    • @dbestech
      @dbestech  2 ปีที่แล้ว +1

      yes. If you watch you will find it.

    • @Tech1st
      @Tech1st 2 ปีที่แล้ว

      @@dbestech local notification plugins support?

    • @dbestech
      @dbestech  2 ปีที่แล้ว +1

      @@Tech1st yes. Both local notification and remote notification

    • @Tech1st
      @Tech1st 2 ปีที่แล้ว

      @@dbestech can you make the videos about this..

  • @KhampasertKEOSESOMPHAN
    @KhampasertKEOSESOMPHAN ปีที่แล้ว

    Thanks bro

  • @chihab3829
    @chihab3829 2 ปีที่แล้ว

    i don't have certificate on my account in developer.apple

    • @dbestech
      @dbestech  2 ปีที่แล้ว

      then you won't be able to do it.

  • @meek6836
    @meek6836 2 ปีที่แล้ว

    can you make video on scheduled firebase notifications?

    • @dbestech
      @dbestech  2 ปีที่แล้ว

      I will try

  • @invisiblesmoke1544
    @invisiblesmoke1544 2 ปีที่แล้ว

    Wil it work for android?

    • @dbestech
      @dbestech  2 ปีที่แล้ว

      Nope. It's just for iOS

  • @nnibraas
    @nnibraas 2 ปีที่แล้ว

    This still isn't working for me. I get no errors, but the iPhone isn't receiving any notification. I've been trying to debug this for a while, but I'm not able to figure out where the issue is coming from.

    • @dbestech
      @dbestech  2 ปีที่แล้ว

      I took me many times before I got a succesful notification. I also had to install and reinstall the app. make sure your apns and bundle names are correct.

    • @adarshsingh5606
      @adarshsingh5606 ปีที่แล้ว

      same for me

  • @banjangkim5242
    @banjangkim5242 2 ปีที่แล้ว

    Thank you for your passionate video.. humm.. I need an Apple developer account to create a keychain, Of course? Apple is too complicated... T.T

    • @dbestech
      @dbestech  2 ปีที่แล้ว

      Most welcome. Yes, You need that.

  • @fase-man6355
    @fase-man6355 2 ปีที่แล้ว

    Hey, I am not getting the messages on ios device. Any help????

    • @dbestech
      @dbestech  2 ปีที่แล้ว

      With me it took me a few times trial before I got any of the messages

    • @fase-man6355
      @fase-man6355 2 ปีที่แล้ว

      @@dbestech I followed your steps, but It only works on android. on ios, it is not working. I generated IPA in codemagic and and tested it in browserstack. but not working. Do I need to add the device UDID on developer account?

  • @nijatnamazzade7413
    @nijatnamazzade7413 ปีที่แล้ว

    Actually, in my side I didn't see any add button on identifiers

  • @vinkyvinu3923
    @vinkyvinu3923 2 ปีที่แล้ว

    App crashing when we try to open notification when app is killed

  • @gowthammanikandan3373
    @gowthammanikandan3373 2 ปีที่แล้ว

    Can u make a video for android

    • @dbestech
      @dbestech  2 ปีที่แล้ว +2

      I will but But I am in china, it's little difficult to use firebase.

  • @neb542
    @neb542 8 หลายเดือนก่อน

    does not work on emulator yet to test real device...

    • @dbestech
      @dbestech  8 หลายเดือนก่อน

      what error do you get?

    • @neb542
      @neb542 8 หลายเดือนก่อน

      @@dbestech No error, Firebase Messaging On listen never triggers after push notification. Not test yet on real device. Generates get token and getapns token.

    • @dbestech
      @dbestech  8 หลายเดือนก่อน +1

      @@neb542 it won’t work without real device

    • @neb542
      @neb542 8 หลายเดือนก่อน

      @@dbestech It now show message received but not display notification on phone device itself. So it was the simulator iphone 15 pro not working. Fix to make work was UNUserNotificationCenter current delegate needs to be assigned as UNUserNotificationCenterDelegate in application method that was not set in this video.

    • @yusufnadaroglu4108
      @yusufnadaroglu4108 8 หลายเดือนก่อน

      Hi guys as ı know you don't need to create notification function for ios, works automatic. But I have a problem :
      When I use to topic in firebase console the notification works right but the other way when I use user segment and choose ios didn't work. Do you have any idea?

  • @PaschalAOgba
    @PaschalAOgba 2 ปีที่แล้ว

    please do for android too.

    • @dbestech
      @dbestech  2 ปีที่แล้ว +1

      Ok. Thanks I will

  • @mlatifraldi
    @mlatifraldi 11 หลายเดือนก่อน

    waalaikum sallam warrahmatullahi wabarokatuh 😁

  • @taghixtalks
    @taghixtalks 11 หลายเดือนก่อน +1

    no it is not working yet, I think firebase notification is most stupid thing in ios that shows how much ios developers(the developers that works for apple company) are stupid. what is this shit. I am working around 5 days with official and unofficial documents and I can't get push notification yet. I did all steps on your video too but it still not working.

    • @dbestech
      @dbestech  11 หลายเดือนก่อน

      It could be frustrating. You start from scratch and check. this has worked with me all the time. but first time did not work

    • @dbestech
      @dbestech  11 หลายเดือนก่อน

      I do agree, apple developers made it hard. Kinda stupid

    • @belveloper
      @belveloper 6 หลายเดือนก่อน

      Is the business apple dev account necessary to receive notifications because I'm not a company so I don't have the DNUS number
      Is there any alternative to open a business account or any idea how to work with personal account ?

  • @muhammadayazfaisal6786
    @muhammadayazfaisal6786 2 ปีที่แล้ว

    Assalam O Alikum Sir Can You Please Make Videos with Details On GraphQL With Flutter

    • @dbestech
      @dbestech  2 ปีที่แล้ว +2

      Ok. I will

    • @muhammadayazfaisal6786
      @muhammadayazfaisal6786 2 ปีที่แล้ว

      @@dbestech Thank You So Much And I Believe That You Will Explain The GraphQL With Flutter in So Easy Way That Any One Can Learn This Without Any Difficulty As We Learn Flutter From Your Food App

    • @dbestech
      @dbestech  2 ปีที่แล้ว +1

      @@muhammadayazfaisal6786 will try my best

    • @muhammadayazfaisal6786
      @muhammadayazfaisal6786 2 ปีที่แล้ว

      @@dbestech Thank You So Much Sir

    • @dbestech
      @dbestech  2 ปีที่แล้ว

      @@muhammadayazfaisal6786 most welcome

  • @msalih
    @msalih ปีที่แล้ว

    13:30 🤝

  • @edward9876
    @edward9876 2 ปีที่แล้ว

    13:22, 16:57

    • @dbestech
      @dbestech  2 ปีที่แล้ว

      what problem you are facing here?

    • @edward9876
      @edward9876 2 ปีที่แล้ว

      @@dbestech I just write time to watch again

  • @syoofweb
    @syoofweb 3 หลายเดือนก่อน

    ❤❤❤❤👌

    • @dbestech
      @dbestech  3 หลายเดือนก่อน

      Learn about our excellent course
      Flutter Multi Vendor App (includes chat)
      www.dbestech.com/tutorials/flutter-multi-vendor-app
      Flutter Single Vendor App
      www.dbestech.com/tutorials/flutter-food-delivery-app-e-commerce-for-ios-and-android

    • @syoofweb
      @syoofweb 3 หลายเดือนก่อน

      @@dbestech thank you so much. I got all your courses so I learned flutter from you I appreciate❤️

  • @CarpeNoctem-y3m
    @CarpeNoctem-y3m 6 หลายเดือนก่อน

    All your education lessons mostly waste of time. I am sorry but you are talking a lot for short issues

    • @dbestech
      @dbestech  6 หลายเดือนก่อน

      You are only one who commented like this. Look at the other comments. It shows your poor skill of following

  • @cs.soaring.5280
    @cs.soaring.5280 ปีที่แล้ว

    this OK makes me chill, hahah. no offence tho.

  • @AkshayGupta-qb1yn
    @AkshayGupta-qb1yn ปีที่แล้ว

    from postman i am receiving { "error": "NotRegistered"}, followed all the steps. pls help

  • @AkshayGupta-qb1yn
    @AkshayGupta-qb1yn ปีที่แล้ว

    from postman i am receiving { "error": "NotRegistered"}, followed all the steps. pls help

  • @AkshayGupta-qb1yn
    @AkshayGupta-qb1yn ปีที่แล้ว

    from postman i am receiving { "error": "NotRegistered"}, followed all the steps. pls help

  • @AkshayGupta-qb1yn
    @AkshayGupta-qb1yn ปีที่แล้ว

    from postman i am receiving { "error": "NotRegistered"}, followed all the steps. pls help

    • @dbestech
      @dbestech  ปีที่แล้ว

      I did not encounter this issue. I don't know.