Тёмный

Swift: Push Notifications Tutorial (2024) - iOS Development 

iOS Academy
Подписаться 118 тыс.
Просмотров 110 тыс.
50% 1

Опубликовано:

 

21 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 185   
@alva1931
@alva1931 2 года назад
I would love to see a video on Push Notifications when a user invites another one to be a friend or sends someone a text. All in all push notifications when certain events happened. Thanks a lot! Keep up the great work
@elatighetfaghaoubeid9463
@elatighetfaghaoubeid9463 3 года назад
Can't believe that this content is free. Thanks 🙏
@iOSAcademy
@iOSAcademy 3 года назад
Youre welcome!
@sebastianstrus6273
@sebastianstrus6273 3 года назад
Finally some dynamic videos. You really respect our time. This is amazing. Thanks a lot!
@iOSAcademy
@iOSAcademy 3 года назад
Youre welcome
@johnnykwon3999
@johnnykwon3999 3 года назад
Please teach us how to automate notifications Sensei ;-;
@iOSAcademy
@iOSAcademy 3 года назад
Coming soon!
@MuniPerez
@MuniPerez 3 года назад
Please do!
@halahmilksheikh
@halahmilksheikh 3 года назад
@@iOSAcademy Yeah please show us how to set up automatic notifications based on updating the info of a Firebase DB
@joelbialluch5559
@joelbialluch5559 13 дней назад
@@iOSAcademy is there a video showing the automated sending feature?
@frewland
@frewland 2 года назад
Very informative. My question would be, who does the notifications go to?. All users? If so how does one target groups or individuuals?
@sainaveenk6153
@sainaveenk6153 3 года назад
Please do explain the user to user specific notifications
@iOSAcademy
@iOSAcademy 3 года назад
Added to my list!
@charles8769
@charles8769 3 года назад
What is app delegate? For swiftUI? I don’t use storyboard anymore cause everyone says it’s much worse than UI
@toainguyen301
@toainguyen301 Год назад
Thank you very much. Thanks to this video, I was able to set up push notifications in my application. But in the report message there is an open count parameter. How to enable it and count the number of open notifications from users?. Currently in my application it is 0
@sarawanak
@sarawanak 3 года назад
Great content! I was looking for an end-to-end PN video like this, ever since I was an iOS Developer. Thanks a lot!!
@iOSAcademy
@iOSAcademy 3 года назад
Youre welcome
@kdtechblunts569
@kdtechblunts569 2 года назад
do we need to pay 99$ and developer account to test this feature as ios developer?,,,,
@silver10188
@silver10188 Год назад
Very awesome! how do you mirror your phone in a window like that?
@iOSAcademy
@iOSAcademy Год назад
Thanks. With quicktime
@ChristopherCricketWallace
@ChristopherCricketWallace 3 года назад
Definitely want to see another video around this. More use cases and edge cases, please.
@iOSAcademy
@iOSAcademy 3 года назад
Coming soon
@ronstedt
@ronstedt 8 месяцев назад
Do you have a video that explains how the user can view the content they are being notified within the app?
@ThisIsAntonio86
@ThisIsAntonio86 4 месяца назад
Thanks a lot, but I would like to ask about if does this works in Release mode?, because when I have my device connected into my mac this show me the push notification, but when I install it on my device this doesn't receive those push notification
@erickloomis5231
@erickloomis5231 2 года назад
This was an awesome tutorial! Saved my life honestly. My only question is how do I store this data to keep my app from crashing? And how do I develop a screen to follow up with the notifications, so users have somewhere to view notifications in app? Thanks in advance!!
@EdRawrDev5813
@EdRawrDev5813 Год назад
how can i navigate to a specific view controller??
@slko7109
@slko7109 2 года назад
Great Content. Everything Works but i have a question. How can i open a certain view controller when the notification is tapped? Right now it opens the app main screen and i want it to open another view controller when the notification is tapped.
@ronstedt
@ronstedt 8 месяцев назад
Same question, here.
@roberto.rabasco
@roberto.rabasco Месяц назад
Thanks to your tutorial I managed to add push notifications to my apple pwa
@sachinsingla6537
@sachinsingla6537 3 года назад
Great content as always. One small question, how can we auto update the badge numbers just like WhatsApp and Gmail? Thankyou for the content Afraz
@iOSAcademy
@iOSAcademy 3 года назад
Thanks & automate with cloud functions
@evelynlima5616
@evelynlima5616 2 года назад
@@iOSAcademy Pls show how and also how to manage badges counting
@weho_brian
@weho_brian 3 года назад
how do you actually send a notification from your app? for example i am personA and I message personB, personB should then receive a push notification on their phone. There doesn't seem to be a lot of documentation on how to do this, or maybe this should be a local notification?
@ShufflePetro
@ShufflePetro 2 года назад
Thank you!
@iOSAcademy
@iOSAcademy 2 года назад
Youre welcome
@goodteacher1837
@goodteacher1837 2 года назад
Your video really helps me a lot. However, I met a problem when following your instruction; that is: Value of type '(Messaging, String?) -> ()' has no member 'token', as xcode cannot read the word 'token'. Can you help show me how to work this out ?
@jersn5560
@jersn5560 9 месяцев назад
How do you group these notifications you received from FCM?
@chrislangston929
@chrislangston929 2 года назад
Worked perfectly the first time. I'm using SwiftUI and loading from Package Manager. Thanks for putting together excellent video!
@protodimbo
@protodimbo 2 года назад
Hey, thanks for the video! Still waiting for lesson with automatic notifications
@iOSAcademy
@iOSAcademy 2 года назад
On my list
@wajadtuha1205
@wajadtuha1205 2 года назад
please do a video on how can we know if notification is received or not by ios Device.
@iOSAcademy
@iOSAcademy 2 года назад
Coming soon
@TheRcfrias
@TheRcfrias 2 года назад
This topic always makes me go around several times. Luckily its under control. It would be awesome to know whats the expected behavior for an actionable notification, I cant believe the only way to display the buttons is to pull down the notification or long press it. is there another way?
@silver10188
@silver10188 Год назад
Yes, it's very interesting how to save the tokens in a database to use them to send push notifications? Do you need a server and cloud messaging for that?
@Daberk1234VFX
@Daberk1234VFX 3 года назад
Revenuecat subscriptions SwiftUI tutorial? 🤩
@iOSAcademy
@iOSAcademy 3 года назад
Hopefully coming soon!
@shoilett1
@shoilett1 3 года назад
Great video! What recording software are you using on your phone? I've never seen the "QuickTime"-looking bar on my iPhone screen before.
@mochamadnurkhayalkadafi1596
This is awesome and great content, thank you so much
@iOSAcademy
@iOSAcademy Год назад
Glad you enjoyed it!
@birdman4274
@birdman4274 3 года назад
Great video thanks. Is there any way to target individual users, as I think this is a broadcast?
@iOSAcademy
@iOSAcademy Год назад
yes - with the token
@chorbogturongi_masjidi
@chorbogturongi_masjidi 2 месяца назад
love this video
@setilanaji8442
@setilanaji8442 3 года назад
You are the best, this content is blessed
@iOSAcademy
@iOSAcademy 3 года назад
Thank you!
@glorytoukraine6956
@glorytoukraine6956 Год назад
Great video and explanation! Thank you!
@iOSAcademy
@iOSAcademy Год назад
Glad it was helpful!
@guhanboopathi6835
@guhanboopathi6835 3 года назад
Do we need a Developer paid account for this?
@chorbogturongi_masjidi
@chorbogturongi_masjidi 2 месяца назад
Can i implement same thing with SPM, i tried to add firebase spm, but couldn't find FirebaseCore from firebase package list
@luccassantanamarinho6700
@luccassantanamarinho6700 2 года назад
Hello friend, this video is for both internal push (inside the app) and external (outside the app)?
@iOSAcademy
@iOSAcademy 2 года назад
External
@Hamza-xc9kb
@Hamza-xc9kb 2 года назад
Thanks it helped.
@iOSAcademy
@iOSAcademy 2 года назад
Youre welcome
@vyankatesha.shivnikar696
@vyankatesha.shivnikar696 2 года назад
Yes we want to see how to implement automated notifications working app...
@iOSAcademy
@iOSAcademy 2 года назад
Coming soon
@vyankatesha.shivnikar696
@vyankatesha.shivnikar696 2 года назад
@@iOSAcademy thanks 👍
@quickuploads3971
@quickuploads3971 Год назад
Is there any way to have 'something' trigger on receiving a push notification? My situation is that our power grid drops fairly often and I get a push notification from the inverter to advise me. But, it comes direct to my phone and I'd like to automate if possible, such as activate a light when a push notfication is received
@HarshitKumar-yn8du
@HarshitKumar-yn8du 3 года назад
Thanks for the video.
@iOSAcademy
@iOSAcademy 3 года назад
You’re welcome
@joshuathomasbrooks9450
@joshuathomasbrooks9450 2 месяца назад
When I do pod init; command not found? I have hd trouble with cocoapods
@halahmilksheikh
@halahmilksheikh 3 года назад
5:15 what do I do here if I'm using SwiftUI as opposed to UIKit? The SwiftUI equivalent here is init() in your App class but what do I do to use these delegates in SwiftUI?
@iOSAcademy
@iOSAcademy Год назад
You can use UIApplicationAdapter
@minwooeom264
@minwooeom264 Год назад
Whenever I create a campaign, I get the notifications on my phone but the open count is always 0 even though I open it. How can i fix this?
@ari.h.ant.
@ari.h.ant. 3 года назад
I am new to IOS Dev.... do i need to have a developer account (and that too paid)? :(
@iOSAcademy
@iOSAcademy 3 года назад
Only for notifications. Otherwise no
@bitsurfer0101
@bitsurfer0101 2 года назад
Can you have Firebase send a push notification automatically when there is an update to the app? or does that have to be done manually?
@iOSAcademy
@iOSAcademy Год назад
yes
@chandanray7822
@chandanray7822 2 года назад
Hello, Great video. Thanks. Do you have videos of Push notification with Azure Notification Hub without using Firebase!
@iOSAcademy
@iOSAcademy Год назад
Not yet
@someoneyoudontknow8372
@someoneyoudontknow8372 2 года назад
can you do this without the paid version of apple developer program?
@iOSAcademy
@iOSAcademy 2 года назад
Its not possible
@rayhandyr9746
@rayhandyr9746 2 года назад
It's very helpful thank you mate
@prabakaranmuthusamy
@prabakaranmuthusamy 3 года назад
Amazing tutorial and explanations, thanks for the tutorial 🙏👍
@iOSAcademy
@iOSAcademy 3 года назад
You’re welcome
@vusalnuriyev2991
@vusalnuriyev2991 3 года назад
Thanks bro for your help!! You are the best🙂🙂
@iOSAcademy
@iOSAcademy 3 года назад
You’re welcome!
@satcsm8222
@satcsm8222 2 года назад
I have followed all the steps but the push notifications still do not arrive on my device, could you help me? Thank you
@christostsangaris4785
@christostsangaris4785 3 года назад
Ways to automate please!!!
@iOSAcademy
@iOSAcademy 3 года назад
Coming soon
@tolgasayan1370
@tolgasayan1370 Год назад
when you handle with UNUserNotificationDelegate's didRecieve method therefore which application status is also inactive, how to push operation with userInfo wait while your LaunchController and tabbar setup and after that operation is ongoing?
@tolgasayan1370
@tolgasayan1370 Год назад
because after parsing userInfo i want to select my tab for my responsible controller and make operation but my tabbar isnt still setup already and couldnt select it...
@programming9398
@programming9398 2 года назад
Good one.
@sriramneelamegam1598
@sriramneelamegam1598 3 года назад
Good one bro 👏
@iOSAcademy
@iOSAcademy 3 года назад
Thank you
@raihanraju1168
@raihanraju1168 Год назад
Thank you sir, I have implemented it, just awesome.
@iOSAcademy
@iOSAcademy Год назад
Nice
@DanKardell
@DanKardell 2 года назад
Nice job, however this is using Firebase. How do you do it without using Firebase? Also how does the badge work when the app is not running?
@skakwy4335
@skakwy4335 2 года назад
always get the error APNS device token not set before retrieving FCM Token
@eduardstreltsov3961
@eduardstreltsov3961 3 года назад
could you please show us how to set up deep links
@sabadmirza
@sabadmirza 2 года назад
Hello. What if we want to send an APN to a specific user/device? What if user has deleted the app and re-install it? How to send to that specific user? Let say user has logged in to Firebase and I want to send a an APN to that user only. Thanks
@serbanpascovici913
@serbanpascovici913 Год назад
Thanks a lot! Very helpful!
@iOSAcademy
@iOSAcademy Год назад
Glad it helped!
@ph_1l751
@ph_1l751 2 года назад
Great Video! But how can i implement the Push Notifications in my @main App. If I try it, I can just run the App, or the PushNotifications with a black screen, but not both? I tried several things, but i can't get both together.
@iOSAcademy
@iOSAcademy Год назад
Use UIApplicationAdapter
@AviadSabag
@AviadSabag Год назад
Ye but how do u update the red badge? :)
@CrunchDesigner
@CrunchDesigner 2 года назад
Hello ! I have a question, can we update the content of delivered notifications ? Depending of the number of received message in a chat app for example
@slavasmirnov9585
@slavasmirnov9585 2 года назад
good!
@iOSAcademy
@iOSAcademy 2 года назад
Thanks
@IndiaReact700
@IndiaReact700 3 года назад
Please do with image and text in push notifications
@iOSAcademy
@iOSAcademy 3 года назад
Coming soon
@dlatechsolutions
@dlatechsolutions Год назад
How can I execute an action in the example application modify coredata once the localnotification is displayed without having to touch it
@iOSAcademy
@iOSAcademy Год назад
With background actions
@dlatechsolutions
@dlatechsolutions Год назад
@@iOSAcademy Do you have any information or example?
@arjunpatel8636
@arjunpatel8636 2 года назад
you need a apple dev membership right?
@iOSAcademy
@iOSAcademy 2 года назад
Yes
@arjunpatel8636
@arjunpatel8636 2 года назад
@@iOSAcademy thank you, I'll just buy it
@buildwithakash
@buildwithakash 2 года назад
incredibly well explained and simplified. We need you!
@iOSAcademy
@iOSAcademy 2 года назад
Thanks!
@carsanbravodevops1948
@carsanbravodevops1948 2 года назад
@@iOSAcademy support for apple watch?.. Thanks
@ishitva420scifi69
@ishitva420scifi69 2 года назад
Can I have an active countdown timer in my notification alert
@iOSAcademy
@iOSAcademy 2 года назад
Nope
@rishisahu6746
@rishisahu6746 2 года назад
Please upload automation process of push notifications
@iOSAcademy
@iOSAcademy 2 года назад
Coming soon
@jestinsaji5023
@jestinsaji5023 Год назад
how can i add a button similar to whatsapp push notification so that i can reply via pushnotification
@smael1989
@smael1989 3 года назад
Thanks man!
@iOSAcademy
@iOSAcademy 2 года назад
Youre welcome!
@Hitori-
@Hitori- Год назад
Do you have any idea ? the badge wont removed after I opened the app
@iOSAcademy
@iOSAcademy Год назад
You need to remove it with UNUserNotification methods
@P.Nelson
@P.Nelson 2 года назад
Hello, great video. Does this work on Web based PWA?
@iOSAcademy
@iOSAcademy 2 года назад
Yes it does
@ehsankabirirahani9733
@ehsankabirirahani9733 2 года назад
Do we need paid developed account to have APNs?
@iOSAcademy
@iOSAcademy 2 года назад
Yes
@upperhost1509
@upperhost1509 2 года назад
Can you do a video on automating push notifications?
@iOSAcademy
@iOSAcademy Год назад
Sure thing
@XKevkexXx
@XKevkexXx 3 года назад
it works when i test the app with Xcode. but when i try to archive the app, i get the error that Firebase.analytics was not found. Sorry about my English
@kiohaha
@kiohaha 2 года назад
can anyone explain with a video how to get the custom sound to play with notifications. pushing the different sound names in the app but the app/phone won't pick up the same sound file to play. no video online to show the correct way to do this, just all say put the files in the app and its supposed to work but noone ever shows this working lol
@urdupublisher
@urdupublisher 3 года назад
I have android app and I am using cloud services I am receiving notifications but when my app in background or foreground when app kill or force kill I don’t get notifications I want notifications even in app kill mode ? Is there any solution please highly appreciate
@TomStarke2006
@TomStarke2006 Год назад
How can I remove the Badges? After opening the app the badges doesn't reset
@iOSAcademy
@iOSAcademy Год назад
Use the UNUserNotification center
@NoshaidAlee
@NoshaidAlee 3 года назад
How APNs detect a specific user application to send a push notification? And also if the user uninstalled the app then how does this scenario works?
@iOSAcademy
@iOSAcademy 3 года назад
The token identies a user & app
@NoshaidAlee
@NoshaidAlee 3 года назад
@@iOSAcademy Thanks and after uninstalling the app?
@jilliankoenig9314
@jilliankoenig9314 Год назад
I keep getting zsh: permission denied when I try to do pod init in my terminal. What should I do?
@iOSAcademy
@iOSAcademy Год назад
Google chmod for permissions
@Nadia-ik6rp
@Nadia-ik6rp Год назад
i did not get any type of notification with all of this.😟
@MaxRovensky
@MaxRovensky Год назад
Video title: - 2022 Me: - Nice Video: - UIKit Me: - hmmmmmm Video : - "CocoaPods" That's gonna be a no from me, chief
@iOSAcademy
@iOSAcademy Год назад
Thanks for the feedback. Newer video also available
@mak_whisk
@mak_whisk 3 года назад
Thank you very much and please show how it can be automatic)
@iOSAcademy
@iOSAcademy 2 года назад
Youre welcome
@antwanwimberly1729
@antwanwimberly1729 11 месяцев назад
Sure but you should note that it may not scale and is potentially subject to attacks.
@raychen4458
@raychen4458 3 года назад
automatic notification ~
@iOSAcademy
@iOSAcademy 3 года назад
Coming soon
@_oli-yd8bv
@_oli-yd8bv 3 года назад
Cocoapods dont work on my mac for some reason... m1 air with monterey...
@MosthostlaWeb
@MosthostlaWeb 10 месяцев назад
Going off the latest dev files this is no longer the correct way to set things up with SwiftUI default projects.... being the video is 2 years old that makes sense, but why was it relabeled "2023"?
@ivaldirbatalha5436
@ivaldirbatalha5436 9 месяцев назад
i did all in the tutorial but i got a list of errors('coudn't build reference FireBase/os/...'). This method probably does not work anymore
@TheBooban
@TheBooban 3 года назад
3:05 after I select it, it adds "Push Notifications (Debug)". Why do I get Debug? Is it because I am using Xcode 13 beta 5? Edit: Nevermind. I closed Xcode and reopened it and (Debug) went away.
@prosperva
@prosperva 3 года назад
remote notifications are not supported in the simulator
@robertkwiat4039
@robertkwiat4039 2 года назад
Can you please help? I followed your tutorial, but I am getting this error. "APNS device token not set before retrieving FCM Token for Sender ID '********'. Notifications to this FCM Token will not be delivered over APNS.Be sure to re-retrieve the FCM token once the APNS device token is set."
@namdhis
@namdhis 2 года назад
Same. I don't know why?! My device cannot receive any notifications
@christiancasanova4176
@christiancasanova4176 Год назад
Im not getting the token... followed your video step by step and the code is the same.
@iOSAcademy
@iOSAcademy Год назад
Check your config
@iamgarrettlyons
@iamgarrettlyons 3 года назад
i cannot for the life of me get this to work. I can see where my token is displayed in the debugger and where i get "Success in APNS registry".... yet no notifcation on simulator or physical iPad. Ugh.
@kishelectronics
@kishelectronics 2 года назад
Tried following your steps and it doesnt idk why. I followed you step by step
@jaylensmith6308
@jaylensmith6308 Год назад
This is not working. I can't recieve notifications on my device
@yantschek4989
@yantschek4989 2 года назад
Why we cannot change third party apps notification sound
@iOSAcademy
@iOSAcademy 2 года назад
you can
@yantschek4989
@yantschek4989 2 года назад
@@iOSAcademy how? Pls help
@prosperva
@prosperva 3 года назад
I am not getting notifications. Help!!!!
Далее
6 Ways to Master iOS Development
7:33
Просмотров 26 тыс.
How Push Notifications Work on iOS and Android
7:08
Просмотров 19 тыс.
WWDC23: Meet Push Notifications Console | Apple
11:32
Просмотров 1,6 тыс.