Complete Flutter Firebase iOS Push Notification | Step by Step

Поделиться
HTML-код
  • Опубликовано: 4 июн 2022
  • We will learn how to use firebase for push notification for ios step by step. We will also cover the settings in Xcode and in apple developer account. We will also see how to generate CSR and APNs for push. notification.
    We will test the app both from firebase app backend and postman. We will also cover when the app is minimized or in the background.
    www.dbestech.com/tutorials/fl...
    📕📕📕📕📕📕📕📕Take my Udemy course on Real Time Chat App
    www.udemy.com/course/flutter-...
    📕📕📕📕📕📕📕
    Buy me a coffee
    www.buymeacoffee.com/dbestech...
    Buy a Macbook as I am using for Flutter app dev
    amzn.to/3AsvPKn
    Learn software programming with us step by step. Make money from home by learning programming
    Complete e-commerce app
    • Flutter E-commerce App...
    Complete app for beginners
    • Flutter 3.10.0 Master ...
    Firebase complete study app
    • Flutter Firebase Maste...
    Complete Gym App
    • Flutter Gym App | BloC...
    Traveling App
    • Flutter Master Class T...
    Learn to build an android and iOS app
    • Flutter App Developmen...
    Learn to build a video player app
    • Flutter Video Player T...
    Learn to build a website step by step
    • Complete Flutter Web A...
    Learn to build an ebook app
    • Flutter Backend | Flu...
    Build an audio app step by step
    • Flutter Audio Player T...
    Twitter @dbestech
    Instagram @dbestech
    What's app @dbestech
    LinkedIn @dbestech
  • НаукаНаука

Комментарии • 149

  • @mihirman8131
    @mihirman8131 2 года назад +15

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

    • @dbestech
      @dbestech  2 года назад +1

      Glad it helped!

  • @howididit917
    @howididit917 Год назад

    This was very helpful and straight forward. Thank you

  • @omidkarami4312
    @omidkarami4312 Год назад

    Thanks so much for the video!

  • @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?

  • @dangdatraymonddelmut3230
    @dangdatraymonddelmut3230 Год назад +2

    Great and most comprehensive tutorial on Push Notification with iOS

  • @aprop-siandorra8050
    @aprop-siandorra8050 Год назад +1

    Great tutorial! Thank you!

    • @dbestech
      @dbestech  Год назад

      You're very welcome!

  • @AbdurRehman-lf6rw
    @AbdurRehman-lf6rw Год назад +2

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

  • @petermounir9314
    @petermounir9314 2 года назад +2

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

  • @arzargaryan
    @arzargaryan 2 месяца назад

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

    • @dbestech
      @dbestech  2 месяца назад

      Glad it helped!

  • @rodrodrigues1729
    @rodrodrigues1729 10 месяцев назад

    This is awesome! LIFE SAVER! Thank you!

    • @dbestech
      @dbestech  10 месяцев назад

      Glad it helped!

    • @rodrodrigues1729
      @rodrodrigues1729 10 месяцев назад

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

  • @diegogiardinetto6328
    @diegogiardinetto6328 Год назад +1

    Really solved my day...

  • @ruslankandiba
    @ruslankandiba Год назад

    Great tutorial. Thaks you

  • @fadysaoudy1813
    @fadysaoudy1813 Год назад +1

    perfect tutorial

  • @abdulwahabkhan4316
    @abdulwahabkhan4316 Год назад

    very well explained ... jzak ALLAH...

  • @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?

  • @ankitrajput85
    @ankitrajput85 8 месяцев назад

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

    • @dbestech
      @dbestech  8 месяцев назад +1

      thanks a lot

    • @belveloper
      @belveloper 2 месяца назад

      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 RUclips suggested first

  • @abdulrasheedkareem1717
    @abdulrasheedkareem1717 Год назад

    this is very helpful 😍😍😍😍😍

  • @user-dm4yh9vm8p
    @user-dm4yh9vm8p 11 месяцев назад

    Thanks bro

  • @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.

  • @olagisrarikis
    @olagisrarikis 7 месяцев назад

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

    • @belveloper
      @belveloper 2 месяца назад

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

  • @axroromonov9837
    @axroromonov9837 Год назад

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

  • @user-ez5pe6ii9c
    @user-ez5pe6ii9c 10 месяцев назад

    great tutorial can you send the link of code

  • @gyanupadhyay9473
    @gyanupadhyay9473 Год назад

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

  • @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.

  • @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.

  • @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

  • @shubhamsaurabh202
    @shubhamsaurabh202 2 года назад +1

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

  • @mustafasahin7867
    @mustafasahin7867 Год назад

    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 Год назад

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

    • @sameerpathan9110
      @sameerpathan9110 Год назад

      Yes I'm also facing this issue

    • @mustafasahin7867
      @mustafasahin7867 Год назад

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

  • @mubasheransari498
    @mubasheransari498 Год назад

    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  Год назад

      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

  • @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.

  • @meek6836
    @meek6836 2 года назад

    can you make video on scheduled firebase notifications?

  • @dhruvinprajapati4345
    @dhruvinprajapati4345 Год назад

    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  Год назад

      Glad I could help. I will check as well

  • @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.

  • @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.

  • @muhammadsyafiqmdasri3186
    @muhammadsyafiqmdasri3186 Год назад

    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  Год назад

      Yes, the coding part no need to change.

  • @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

  • @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 2 месяца назад

      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

  • @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.

  • @aldave9083
    @aldave9083 2 года назад

    suggestion add preview of the output in intro

  • @stephaneadigoun4033
    @stephaneadigoun4033 Год назад

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

  • @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..

  • @Madmemo
    @Madmemo 8 дней назад

    ❤❤❤❤👌

    • @dbestech
      @dbestech  8 дней назад

      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

    • @Madmemo
      @Madmemo 8 дней назад

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

  • @mlatifraldi
    @mlatifraldi 8 месяцев назад

    waalaikum sallam warrahmatullahi wabarokatuh 😁

  • @kavin7285
    @kavin7285 2 года назад

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

    • @dbestech
      @dbestech  2 года назад

      No, it's not possible.

  • @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 Год назад +1

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

  • @AkshayGupta-qb1yn
    @AkshayGupta-qb1yn 9 месяцев назад

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

  • @oh-my-lord
    @oh-my-lord Год назад +1

    Can you upload your AppDelegate.swift please?

  • @Juliapak
    @Juliapak Год назад +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  Год назад

      Thanks for the info!

  • @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.

  • @Hakan-sr7ue
    @Hakan-sr7ue Год назад

    this code working if app closed?

  • @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

  • @nijatnamazzade7413
    @nijatnamazzade7413 Год назад

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

  • @invisiblesmoke1544
    @invisiblesmoke1544 Год назад

    Wil it work for android?

    • @dbestech
      @dbestech  Год назад

      Nope. It's just for iOS

  • @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.

  • @vinkyvinu3923
    @vinkyvinu3923 Год назад

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

  • @PaschalAOgba
    @PaschalAOgba 2 года назад

    please do for android too.

    • @dbestech
      @dbestech  2 года назад +1

      Ok. Thanks I will

  • @nnibraas
    @nnibraas Год назад

    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  Год назад

      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

  • @fase-man6355
    @fase-man6355 Год назад

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

    • @dbestech
      @dbestech  Год назад

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

    • @fase-man6355
      @fase-man6355 Год назад

      @@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?

  • @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

  • @neb542
    @neb542 4 месяца назад

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

    • @dbestech
      @dbestech  4 месяца назад

      what error do you get?

    • @neb542
      @neb542 4 месяца назад

      @@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  4 месяца назад +1

      @@neb542 it won’t work without real device

    • @neb542
      @neb542 4 месяца назад

      @@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 4 месяца назад

      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?

  • @taghixtalks
    @taghixtalks 8 месяцев назад +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  8 месяцев назад

      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  8 месяцев назад

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

    • @belveloper
      @belveloper 2 месяца назад

      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 ?

  • @user-di9uc1ee3h
    @user-di9uc1ee3h 2 месяца назад

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

    • @dbestech
      @dbestech  2 месяца назад

      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 9 месяцев назад

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

  • @AkshayGupta-qb1yn
    @AkshayGupta-qb1yn 9 месяцев назад

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

  • @AkshayGupta-qb1yn
    @AkshayGupta-qb1yn 9 месяцев назад

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

  • @sanaishaque
    @sanaishaque Год назад +1

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

    • @AkshayGupta-qb1yn
      @AkshayGupta-qb1yn 9 месяцев назад

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

  • @AkshayGupta-qb1yn
    @AkshayGupta-qb1yn 9 месяцев назад

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

    • @dbestech
      @dbestech  9 месяцев назад

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