Remote Notifications! (Firebase : Swift 2 in Xcode)

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ม.ค. 2025

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

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

    I still watch this to this day, whenever I need to renew my certificates and such. Please never delete this video lol and if it ever becomes out of date, please update it. You're doing a great service to the dev community!

  • @nhantrivinh
    @nhantrivinh 8 ปีที่แล้ว

    Yes, finally someone with knowledge of Firebase doing a video on Firebase! Please keep this Firebase series up, you did an amazing job.

  • @Archetapp
    @Archetapp  8 ปีที่แล้ว +23

    How to use Remote Notifications inside of your iOS app using Firebase, with Swift in Xcode. Enjoy! :D

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

      Please, please do a tutorial on Firebase Storage.

    • @Archetapp
      @Archetapp  8 ปีที่แล้ว +4

      Working on it! Gonna show how to save use a profile image. (It might just be posting a photo, we'll see) :)

    • @francescolimoni5555
      @francescolimoni5555 8 ปีที่แล้ว +6

      Hey Jared Davidson I’m Francesco and I live in Italy
      I want to say thank you for what do you doing.
      5 month ago I decided to learn swift at beginning was a little bit tough but when I discovered your channel it was much easier, and now I’m really close to finish my first app, and all my work and skills that I earned are increased thanks to your lesson.
      You are really great!

    • @tonyzchan
      @tonyzchan 8 ปีที่แล้ว

      Thanks you , Jared :)

    • @YogeshPateliOS
      @YogeshPateliOS 7 ปีที่แล้ว

      Yeah its like Boom Awesome bro its great helpfull for all ios youtubers ! Thank You

  • @raghvendrapacholi2445
    @raghvendrapacholi2445 7 ปีที่แล้ว

    I have apple developer account But I am not able to get that AppleDevelop...m. certificate in my keychain access(shown at 6:34 ). Please help/suggest me to get that certificate! Thanks!!

  • @drdunkan15
    @drdunkan15 8 ปีที่แล้ว

    Please continue to keep up the good work! These videos are so helpful. Thank you for all the trouble you go through to make them so detailed.

  • @lauraklein7903
    @lauraklein7903 7 ปีที่แล้ว

    I'm looking forward to your syntax updates for Swift 3! Thank you for your great videos. VERY HELPFUL!!

  • @thanhlamho4646
    @thanhlamho4646 7 ปีที่แล้ว

    11:00 can you show full func name."func application(application: UIApplication, didReceiveRemoteNotification userInfor: [NSObject : AnyObject], fetchCompletionHandler completionHandler..."

  • @YogeshPateliOS
    @YogeshPateliOS 7 ปีที่แล้ว

    Hello sir, i have a one problem create xcode project then in capabilities section it does not show me pushnotification on/off option pls sol my issue Thank You Sir :)

  • @yossicohen9295
    @yossicohen9295 8 ปีที่แล้ว

    Hi jared !
    How can i do that the app will send to the user the same message, every day, at 8:00am ? Plz help me !

  • @XecuttioneR
    @XecuttioneR 8 ปีที่แล้ว

    Subscribed :)
    Just by reading the following two suggestions on what videos you should make next, I know I will like this channel. Thank you!

  • @lars-sorensen
    @lars-sorensen 8 ปีที่แล้ว +2

    Awesome!
    I'd love to see a sequel of this video including how to target specific devices. Also as noted by Костя Бродскийfor it would be nice to see how to send those targeted notifications using external tools/triggers by php-script or the like.

    • @Archetapp
      @Archetapp  8 ปีที่แล้ว

      I'll see what I can do for targeting specific devices. I haven't really worked with PHP, so we'll see, but probably won't get a video out anytime soon. :)

  • @BrianBecker
    @BrianBecker 8 ปีที่แล้ว

    How can you send Client push notifications? thanks!

  • @dvsteve71
    @dvsteve71 8 ปีที่แล้ว

    Excellent Job... What a marathon! Even though I subscribe, I am adding this one to my XCODE folder...

  • @appmandan
    @appmandan 8 ปีที่แล้ว

    Thanks Jared! I love your tutorials, they're always so easy to follow. Will you be showing how to send automatic remote notifications to a single device in the future?

  • @AishaLaDon
    @AishaLaDon 5 ปีที่แล้ว

    Thanks for the video. I got everything done but for some reason, I am not getting the notifications. What did I do wrong? Apple Developer says its enabled. I added everything in swift, allowed notifications but no notifications. :(

  • @Kinpil10
    @Kinpil10 8 ปีที่แล้ว

    How would you make it so that it opens are certain part of the app?

  • @EYNRT
    @EYNRT 8 ปีที่แล้ว +13

    Hey Jared, can you make a video on 'How to make a messaging app with Firebase'.

    • @EYNRT
      @EYNRT 8 ปีที่แล้ว +9

      With a login page

    • @Archetapp
      @Archetapp  8 ปีที่แล้ว +10

      Working on it. :)

    • @MrHockeyJock1
      @MrHockeyJock1 8 ปีที่แล้ว

      you're the man Jared!!!

  • @AnaGabrielPerez
    @AnaGabrielPerez 6 ปีที่แล้ว

    Can you do an updated version of this video? This one is a little out of date, as the swift methods have been deprecated.

  •  8 ปีที่แล้ว

    Awesome, quick-and-easy tutorial, as always! Keep 'em coming! :)

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

      Will do! Glad you enjoyed it. :)

  • @phriend2spin
    @phriend2spin 8 ปีที่แล้ว

    Just what I was hoping you would do a lesson on. Thanks Jared.

  • @isabelb.789
    @isabelb.789 8 ปีที่แล้ว

    hi. if i wanted my app to do something when it received a notification (like an iMessage) how would i go about doing so? (like if i have a label that says hi and i want to change it to say bye when i get an iMessage) i've tried so many different ways to do this but i just can't seem to detect when my phone gets a notification, and how to get the app to do something when it gets one. thank u.

  • @jelordgulle9022
    @jelordgulle9022 6 ปีที่แล้ว

    Instead of sending through firebase , how would it be possible that we can send a push notification inside the app , like by clicking a button that will trigger it. Thanks

  • @SRVblueshero1
    @SRVblueshero1 8 ปีที่แล้ว

    Are there any additional steps when setting up the Production APNs certificate versus the Development APNS certificate?

  • @omaralbeik
    @omaralbeik 8 ปีที่แล้ว

    Is there anyway we can schedule notifications so firebase will send a notification many times in a day to update data in background?

  • @0926Penguin
    @0926Penguin 8 ปีที่แล้ว

    Could you make a video on implementing ads since iAd is being discontinuted?

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

    hi jared, i tried this in my app but the notification is not fired when in background. but when i open the app did receive remote notification function is called and user info is printed. please advice...

  • @aliasadi2550
    @aliasadi2550 6 ปีที่แล้ว

    is that possible we custom the incoming massage ?

  • @MrJameslb3
    @MrJameslb3 8 ปีที่แล้ว

    Do you think you could do a video on using "OpenEars" speech recognition? it would really help.

  • @alexdacol18
    @alexdacol18 7 ปีที่แล้ว

    App is crashing after receiving notification, first time I press the notification the app opens and everything works fine, the second time I open the notification the app crash, the third time it works, the fourth crashes, and so on...

  • @mahmoudelfeel7991
    @mahmoudelfeel7991 8 ปีที่แล้ว

    can you please show us how to download images to the device gallery from firebase ?

  • @harlepas
    @harlepas 8 ปีที่แล้ว

    Great video. You should do a video on how to place overlays onto maps. There isn't much info on how to do that online.

  • @samuelromero5246
    @samuelromero5246 8 ปีที่แล้ว

    Hey Jared I'm Samuel and I will like send notifications user to user without use the firebase interface. Do you have a example for this.

  • @Latertqq
    @Latertqq 7 ปีที่แล้ว

    Hello,
    I have a question about certificate, after downloading it, I don't have a key. Only a certificate. And its not opening in my certificates, only in all certificates. How can I get a key?

  • @itubevinod
    @itubevinod 8 ปีที่แล้ว

    Any way we can schedule notifications with FireBase?

  • @shubhamsingla2120
    @shubhamsingla2120 6 ปีที่แล้ว

    Can I execute some code after receiving the push notification in the killed IOS app?

  • @Jonas-Ester
    @Jonas-Ester 8 ปีที่แล้ว +5

    Great Tutorial!!!!
    But I think at 11:20 it's "gcm.message_id" instead of "gcm_message_id". :)
    Keep on doing these awesome videos Jared!!!

  • @DrChazz26
    @DrChazz26 5 ปีที่แล้ว

    Can you please make another video on how to add remote notifications to a tableview? I'd like my users to be able to touch the notification, have the app open to the tableview and read the current as well as previous notifications. Please and thanks

  • @shreemanarmy942
    @shreemanarmy942 6 ปีที่แล้ว

    how to read firebase push notification and store into userdefault when app is in background stage

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

    Hey Jared, just one thing I noticed at 11:20 in your video, I believe it should be "gcm.message_id" instead of "gcm_message_id". I got an error saying it found nil, but once I changed that it seemed to work.

  • @hcivelek
    @hcivelek 8 ปีที่แล้ว

    Thanks for this usefull video. I do all step and it works at one of my project. There is no problem because it was a new project. But! There is another project that I have to develop, but this app has early version which is at app Store right now. I did not make the early version and I have no code about it. I have to use same bundle id to "update" same application, right. Actually this app is not "mine". I do it for some company. The problem is, older app has use notification over some service. I try to throw notification with same bundle id but it not work. I think problem is bundle id, but how to I get over it? Is there any way? Thanks.

  • @esradidemtanritanir
    @esradidemtanritanir 4 ปีที่แล้ว

    You are perfect! Thank you so much for this video It has got a lot of important critical details that I couldn't find anywhere:)

  • @OllyXen
    @OllyXen 8 ปีที่แล้ว

    Hey Jared do i have to buy something to get the push note on xcode? and how?

  • @Kemalekren
    @Kemalekren 8 ปีที่แล้ว

    Hi, First of all thank you for sharing this video with us.I wan to ask you something after we create to notification how could we show the details our notification to users in views? Could you give me hint about it Thank you

  • @BenjaminPfammatter
    @BenjaminPfammatter 8 ปีที่แล้ว

    Nice man! Please bring more videos for the new firebase :D would be awesome!

  • @otidgigp140
    @otidgigp140 7 ปีที่แล้ว

    if a sent a notification from php server with fsend , how can i recieve the parameter in swift ios

  • @glenndbritto674
    @glenndbritto674 8 ปีที่แล้ว

    hey jared how do i make an app of my clients website ,he wants same layout as that of his website.
    I made his website using wordpress.

  • @HaydenHolcomb334
    @HaydenHolcomb334 8 ปีที่แล้ว

    I just started xcode and I have no idea where to start. I'm trying to create a top down game but don't know how to. Any suggestions?

  • @1845aj
    @1845aj 8 ปีที่แล้ว

    hey is this push notifications? can this be done from one device to another??

  • @rubio15es
    @rubio15es 8 ปีที่แล้ว

    how to send individual notification?. I get the token ( FIRInstanceID.instanceID().setAPNSToken(deviceToken, type: FIRInstanceIDAPNSTokenType.Unknown)
    print("Device Token:", tokenString)) but when i send the notification with the token, firebase console said: status > failed. Why?

  • @twiseapps5764
    @twiseapps5764 8 ปีที่แล้ว

    where do I enable push notifications on Xcode 8? It's not there for me.

  • @mk9430-d8v
    @mk9430-d8v 8 ปีที่แล้ว

    how about sending from a device to another device?

  • @anirudhbhalala1056
    @anirudhbhalala1056 7 ปีที่แล้ว

    possible to set image in notification ..???

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

    From where did you learn swift???

  • @sghotouk
    @sghotouk 8 ปีที่แล้ว

    Jared, i exported my firebase project onto an iphone 4s, app works on simulator, however on iphone i can't get past the sign in screen, it says network error and i'm sure the phone is connected to the internet, what am i doing wrong?

  • @TheUdaymishra
    @TheUdaymishra 7 ปีที่แล้ว

    how to change ViewController when notification is tapped by user ?

  • @mikecho81
    @mikecho81 8 ปีที่แล้ว

    Hi Jared, i have a question, why if the app is opened when you send a new message from Firebase the application crashes??, only works on stand by or when the device its locked

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

    How to add the sound to this notification ????

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

    Hi Jared, these notifications are sent from firebase web console, can you make a video for sending firebase notifications from sever(through HTTP/XMPP APIs) ? We may query our DB for users meeting some criteria and send them notifications.

  • @ethanohara4291
    @ethanohara4291 8 ปีที่แล้ว

    I noticed a lot more code in your AddDelegate.swift file that was not included in the video. Is that necessary for this tutorial? Thx.

  • @alekseiwe
    @alekseiwe 6 ปีที่แล้ว

    Cool, thank you Jared!
    What about the case when e.g. you have messenger in you app and you need to notify user when someone sent him new message?

  • @PavlosNicolaou
    @PavlosNicolaou 7 ปีที่แล้ว

    any updated version for Swift 3.1?

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

    Awesome tutorial Jared! Can't wait to implement this into my own app.

  • @123DudeDragon
    @123DudeDragon 8 ปีที่แล้ว

    is there a link to your project file

  • @KumarDharsan2014
    @KumarDharsan2014 8 ปีที่แล้ว

    Hi Jared
    Thank you for the video. I had no knowledge about push notification but your video helped me to get on the track. It would great if you could help me on how to test it on registered devices. Do I need to download the app on registered devices first ? if so how ? Thanks in advance

  • @douglasevaristo
    @douglasevaristo 8 ปีที่แล้ว

    Hi man! Help me: how to send a automatic notification for a user in a chat? (for example: when you send a message for a user, this guy recieve a push notification. Please! Help me! i cant find nothing to expand me this! thks a lot!

  • @mgdotnet
    @mgdotnet 8 ปีที่แล้ว

    is there a way to send a notification based on time? for example, 24 hours b4 a date, or how supercede sends notifications when something in your game is done. etc etc

    • @krutomjer
      @krutomjer 8 ปีที่แล้ว

      Yes, didn't you see at the end of the video where firebase prompts for sending time ?

    • @mgdotnet
      @mgdotnet 8 ปีที่แล้ว

      +krutomjer I did. but isn't that based on the current time. if I'm doing an app that I want to remind the user 24 hours b4 something happens, setting that won't do it I would assume. every user would have different dates/times.

    • @krutomjer
      @krutomjer 8 ปีที่แล้ว

      mgdotnet oh, so you mean let's say a) 24h before local time (ie. 24 before Chirstmas in that timezone) and/or b) 24 hours local time before an event (24h before WWDC)

    • @mgdotnet
      @mgdotnet 8 ปีที่แล้ว

      +krutomjer yeah. for example, if I'm making an app that I store birthdays in. I want to be reminded it someone's birthday 7 days before, 4 days before and 25 hours b4. etc.

  • @pharmamall5361
    @pharmamall5361 8 ปีที่แล้ว

    thanks mate this tutorial its very clear and easy to understand keep it up bro :)

  • @Pelle4fck
    @Pelle4fck 7 ปีที่แล้ว

    My xcode didn't automatically gave me the Applicationddidreceiveremotenotification... So can you please tell me, what the line is? It's not visible in the video.. Thanks (Y)

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

    hey jared, can you do a topic rather then user segment?

  • @OsamaAltmeme
    @OsamaAltmeme 7 ปีที่แล้ว

    clang: error: linker command failed with exit code 1 (use -v to see invocation) how fix it ?

  • @MrCrocknet
    @MrCrocknet 7 ปีที่แล้ว

    Hi,
    I'm one of your fans on TH-cam. But I'm struggling for days trying to implement a trigger for push notifications when a user sends a message to another user in my chat app.
    All I need, I think, is a Push Notification Trigger.
    Please, can you help?
    Thanks

  • @stine615
    @stine615 8 ปีที่แล้ว

    Hi Jared Great tutorial! I have a question though this works perfectly in my app but now that I am ready to push it out with my Apple Developer Enterprise Program through our MDM the notifications aren't coming through. Any ideas what could be causing this?

    • @knockaneancolm
      @knockaneancolm 7 ปีที่แล้ว

      Hi Christine, Im having the same problem. Did you solve the problem? Did you try to create a new certificate for production as Jared just creates one for development.

  • @stine615
    @stine615 8 ปีที่แล้ว +3

    Hey Jared this tutorial was super helpful and easy follow. I have a question about sending the notification while the app is open. Is there a way to do this? I noticed my are being send fine if it is closed but not while it is open on my screen. Any help would greatly be appreciated.

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

      Did you found the answer?

    • @stine615
      @stine615 7 ปีที่แล้ว

      Nope haven't found an answer for this, just used the function as is.

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

      You can modify this in advanced settings, when you make your notification in your account at firebase

  • @michaelsolimini5843
    @michaelsolimini5843 8 ปีที่แล้ว

    anyone know how to do this with UNNotificationSettings? UIUserNotificationSettings was deprecated in the swift update and no longer works

  • @fernandadosreis9534
    @fernandadosreis9534 8 ปีที่แล้ว

    Jared, I have a cocoa touch static library and want him to receive remote notification.
    (It works like this: it's an app inside the other)
    it's possible?

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

    Hey Jared ! Can you make a video on 'How to use firebase cloud messaging?' it's really hard to understand and I'm lost with it...

    • @plassonade
      @plassonade 8 ปีที่แล้ว

      Or if you have any good tutorial to provide me... Thanks

  • @GabrielArauj
    @GabrielArauj 8 ปีที่แล้ว

    Hey Jared can I do P2P with firebase as it used to be in Parse?

  • @VladVerbaa
    @VladVerbaa 8 ปีที่แล้ว

    When I swipe the notification the app doesn't open up. Is there anyway to make that happen? Thanks for the help in advance :)

  • @WesleyMota
    @WesleyMota 8 ปีที่แล้ว

    Great tutorial!
    I'm working with firebase, and I was looking for something like this.

    • @Archetapp
      @Archetapp  8 ปีที่แล้ว

      Awesome, glad I could help! :)

  • @Tom-zv9kt
    @Tom-zv9kt 8 ปีที่แล้ว

    Hi Jared, Thanks for the video. I have question for you. I managed to create a chatting app using Firebase and jsqmessagesviewcontroller and its fully functional. But I'd like to implement a real time push notification when a user sends a message to another user. Is this achievable through firebase? I've read the documentations online. It seems like firebase only supports broadcast push notification from the server. but not peer to peer between users. How do I go about doing this? Thanks...

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

      Have you got the solution? I'm on your same situation :)
      Do you use Firebase or OneSignal for notifications? Thanks

    • @Tom-zv9kt
      @Tom-zv9kt 8 ปีที่แล้ว +1

      I didn't know about OneSignal I'll check it out. But save yourself some time. I've done weeks of research. "true" real time p2p push notification is not doable through firebase or FCM without third party services.. But I still haven't figured out how to do it

  • @anirudhr.huilgol.9449
    @anirudhr.huilgol.9449 8 ปีที่แล้ว

    please make a tutorial on sqlite with swift cover at lest CRUD operations i don't know whether you have seen my message i had dropped requesting you for the same thing
    please help me out with the SQLite tutorial

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

    How to do it on ios 10?

  • @se551
    @se551 8 ปีที่แล้ว

    Hey Jared Davidson, I’m Eric. Thank you so much for your video. It helps me a lot. I follow exactly what you did in the video and it works. But i have a problem that when I click the notification message on my iphone it start the app and close the app immediately. I don't know what I did wrong, Could you please help to solve this issue?

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

    UILocalNotification was deprecated on iOS 10, can you make a tutorial of the new UserNotifications.framework? A really appreciate that

  • @santhoshkumar-md6kq
    @santhoshkumar-md6kq 6 ปีที่แล้ว

    Upload your Development APNs certificate
    I try to upload the certificate it's not uploaded. please help me to solve the problem .

  • @itubevinod
    @itubevinod 8 ปีที่แล้ว +3

    Firebase throws an error saying "The Bundle ID in the certificate does not match the Bundle ID you entered." I double checked everything. Everything is just fine. What do I do?

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

      I had the same problem, is anyone can help to solve it?

    • @zdevx
      @zdevx 8 ปีที่แล้ว

      same problem here

    • @tjsorensen1892
      @tjsorensen1892 8 ปีที่แล้ว

      This happened to me as well. If you have more than one app in Firebase then you need to switch to the correct app.

  • @AishaLaDon
    @AishaLaDon 5 ปีที่แล้ว

    Hey Jared, Did I read correctly; firebase will not work with IOS 12 ?

  • @jacobpeck8103
    @jacobpeck8103 8 ปีที่แล้ว

    Are you planning on re-doing this for swift3, or if I still follow the instructions will it work in swift 3?

  • @ethanohara4291
    @ethanohara4291 8 ปีที่แล้ว

    Hello David. I love your videos and they are so helpful. However, after watching this tutorial I tried incorporating it into one of my own apps but got a problem once I tried uploading my Certificates.p12 file. In the upload mini section, I got an error saying "The Bundle ID in the certificate does not match the Bundle ID you entered." My Bundle ID in my firebase project is exactly the same as the Bundle ID for my firebase project (for that app) How could I fix this? Could it be because I did not uput "com." in my organization name? "You're the best. Thx

  • @MapleleafEnterprises
    @MapleleafEnterprises 8 ปีที่แล้ว

    nice job! Been fighting this one for about a week ...

  • @archilo20
    @archilo20 7 ปีที่แล้ว

    Hi Jared, thanks for your videos. Question, will this work when app is in foreground ?
    Thanks

  • @mikecho81
    @mikecho81 8 ปีที่แล้ว

    Hi Jared, have you ever try with azure hub??

  • @ghassanjaam5747
    @ghassanjaam5747 8 ปีที่แล้ว

    The way of configuration receive push notification on firebase its the same on the google messaging cloud !?? And thank you ! Amazing tutorial ! I hope to make a course on udemy !

  • @subhashjaiswar3133
    @subhashjaiswar3133 4 ปีที่แล้ว

    And how to use device token for notification

  • @subhashjaiswar3133
    @subhashjaiswar3133 4 ปีที่แล้ว

    Pls make apple push notification in swift thank u

  • @SweatyMushroomz
    @SweatyMushroomz 8 ปีที่แล้ว

    The notification didn't go to my phone. What went wrong.

  • @dowiee2694
    @dowiee2694 8 ปีที่แล้ว

    Hey Jared, do you also have iOS 10 beta?

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

    Muy excelente! Short and sweet. Awesome job!

  • @silviotista
    @silviotista 7 ปีที่แล้ว

    Firebase is free? I have problems. When I upload the application to the appstore notifications no longer help please

    • @knockaneancolm
      @knockaneancolm 7 ปีที่แล้ว

      Hi Mauricio, Im having the same problem. Did you solve the problem. Did you try to create a new certificate for production as Jared just creates one for development.

  • @raamodedra8752
    @raamodedra8752 6 ปีที่แล้ว

    not working for me when app is terminated state or background state, anyone can help me..?