How To Set Up Local Notifications In Xcode 8 (Swift 3.0)

  Рет қаралды 46,021

The Swift Guy

The Swift Guy

Күн бұрын

Пікірлер: 82
@lalithsasubilli8103
@lalithsasubilli8103 2 жыл бұрын
Hi Swift Guy, Great tutorial and I love it. I love how you straight up explain and go into the code.
@zxy6367
@zxy6367 7 жыл бұрын
Thaaaaaaaaaaank you very much, I watched a lot of tutorials but no one like you, you are the best.
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
haha, thanks;)
@javaprogrammer1208
@javaprogrammer1208 7 жыл бұрын
Woo man Every HW I have done so far was by your videos help. Thank you so much
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
You are welcome!:)
@di_nerd_apps
@di_nerd_apps 5 жыл бұрын
Great vids bro much respect from Jamaica
@everton_dev
@everton_dev 7 жыл бұрын
Nice tutorial! Let me ask you something. What should I do if I want to display a different icon in the notification? I mean if I want to show in the notification a different icon, not the app icon?
@sherbazh
@sherbazh 8 жыл бұрын
Dude, these are great, I hope you keep uploading :)
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
I will!:)
@diavelrider2001
@diavelrider2001 7 жыл бұрын
Thanks. Another great tutorial. One question: How can i make badge go away after closing the app? That red number 1 stays there forever.
@francescolaiti
@francescolaiti 7 жыл бұрын
YOU ARE FANTASTIC! You solve me a lot of problem! Thank you too much for your work!! ✌️✌️
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Super glad to hear that Francesco!:)
@erasmocondegoliveira
@erasmocondegoliveira 7 жыл бұрын
good tutorial, simple, fast and easy. Get my like!
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Thank you:)
@saeids7842
@saeids7842 7 жыл бұрын
Hi Swift Guy, Great Tutorial, (as usual), I have an issue with my iOS app, written on Swift 3 with Xcode using your method. I'm using WiFi Socket server Communication in my app to communicate with a Raspberry Pi who send notifications via WiFi protocol, and UserNotification in Xcode (your method, just instead of using a push button, I put the UNMutableNotificationContent inside my case stream function) to receive these notification from RPi. The problem is when I leave the application's window and go out to home screen, it seems my app stop to listening and when my RPi send the nothifications, there is no notification on my iPhone to see. When I test my application with Xcode simulator, it works well, on applications's window or out there on home screen, But when I test it on my iPhone device, it receive the notifications only when I rest on application's window, and stop working when I push home's button to being on home screen, or any where outside of application windows. Maybe you Know some solution, Thanks in advance,
@AlfredoElizondoLife
@AlfredoElizondoLife 7 жыл бұрын
U deserve more views man , great tutorials , keep up
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Thank you!:)
@Geppa.
@Geppa. 7 жыл бұрын
if i want to used this notification with a DatePicker what I have to change in this tutorial? thx man very nice tutorial
@02337755
@02337755 7 жыл бұрын
Any thoughts on starting the notification at a later date and having it repeat ?
@KONDAVENKATASRIVATSAVBCE
@KONDAVENKATASRIVATSAVBCE 7 жыл бұрын
Do u have any idea how to get notifications on certain date??
@tiberiust4474
@tiberiust4474 8 жыл бұрын
wow your the best develop youtube on the world ;)
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
haha, thanks!
@tinhdoanxuan4668
@tinhdoanxuan4668 5 жыл бұрын
@@1TheSwiftGuy HI, Thank you for your video. But i have issue : how to make interval job ( run in background ) to get data from server, if have data then show notification to user.
@mrtomas621
@mrtomas621 6 жыл бұрын
I needed this so much. Thank you.
@zwdesigns5694
@zwdesigns5694 6 жыл бұрын
Could I use NSNotification to fire off updating my UIView background color with time change? I have most of my code set up with the color scheme, but I'm having a difficult time making it change color. If you need to look at my code, let me know.
@02337755
@02337755 8 жыл бұрын
Thanks so much for uploading this!
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
Glad you enjoyed it!:)
@mattesackboy2001
@mattesackboy2001 7 жыл бұрын
Hi man, your tutorial il awesome! But how can I make a notification that appears only after 12hours (for example) after the user entered (in the app) and if the users enter in the app after 8 hours the countdown of the notification restart?
@bonjai1234
@bonjai1234 7 жыл бұрын
hi . . thanks for the tutorial . . . i have one question on push notification in swift 3. let say that I log in into apps as id "A001" . . and in my mysql database i have set routing approval workflow. "A001" as user apply , and my approver will be "B001" for 1st level and "B002" for 2nd level. which mean that whenever i send the data using id "A001" . push notification only send to my approver level only ("B001" and "B002") . . can you do a tutorial on that . ? thanks.
@bonjai1234
@bonjai1234 7 жыл бұрын
forgot to mention . . i mean . . push notification triggered by id * . .
@GPC2013
@GPC2013 7 жыл бұрын
I wish you success and development my friend
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
thanks;)
@GPC2013
@GPC2013 7 жыл бұрын
you have feacbook man i need add can you be new freind :)
@Adrianogba
@Adrianogba 7 жыл бұрын
Awesome!! But I need a way to create a background service that do an action and if an condition is triggered it shows up the local notification. Example: Check if there is a new message. If list o messages is same as local do nothing, if not show notification that there is something new. But running this endlessly in background. I don`t any tutorial showing a good way of doing that, can you help me or already have an video with this?
@oshotz
@oshotz 6 жыл бұрын
Adriano Martins I think you’d have to use push notifications for that. Apple has some documentation here: developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/APNSOverview.html Not sure if that’s what you want, but it should be close.
@adnaniqbal6121
@adnaniqbal6121 8 жыл бұрын
great tutorial bro! can you make a tutorial on inapp purchase?
@SachinSabbarwal
@SachinSabbarwal 6 жыл бұрын
Thanks bro!! You made it look like easy :)
@franciselias1381
@franciselias1381 7 жыл бұрын
whats the badge used for?
@mohamedsudheer9163
@mohamedsudheer9163 6 жыл бұрын
Hello, how can I set the trigger to happen when a variable is less than a certain value???
@MONOLITChannel
@MONOLITChannel 8 жыл бұрын
Please make video about relationships in core Data.
@takirajani2693
@takirajani2693 5 жыл бұрын
Hello sir, Its work but i have to set time with time picker view with many conditions like daily reminder, weekly etc, so sir plz help to create notification dynemically
@TheRizwanmughal
@TheRizwanmughal 7 жыл бұрын
how can i send notification through multipeer connectivity frame work?
@joehalcisak6918
@joehalcisak6918 8 жыл бұрын
Can you do in app purchases tutorial
@RaghavSharmaNeXt
@RaghavSharmaNeXt 7 жыл бұрын
Hey Swift Guy I am having a very stingy problem. I want to send local notifications at every start of the month. How to do this?
@alejandroquiros2882
@alejandroquiros2882 7 жыл бұрын
so usefull! ty
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Glad to hear that, you are welcome!:)
@vincentb6750
@vincentb6750 8 жыл бұрын
Is it also possible to create a notification which is only displayed, if something happened in my app?
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
Definitely, you simply trigger the notification within the function that you want
@빡구-h4w
@빡구-h4w 5 жыл бұрын
Wow.... respect you :(
@deviyaniswami8814
@deviyaniswami8814 6 жыл бұрын
Please upload videos on sidebar menu
@flaminzzz
@flaminzzz 7 жыл бұрын
thanks for the help :)
@cuve
@cuve 7 жыл бұрын
So after you get the notification you see that little red ball on the app icon and it wont go away.. help?
@lukee386
@lukee386 7 жыл бұрын
Did u find out how to remove this?
@akhilsharma2712
@akhilsharma2712 7 жыл бұрын
How can I do a repeating notification after the button's pressed? When I change: repeats: true, it gives me an error in the UNTimeIntervalNotificationTrigger line of code and causes the app to crash. Any suggestions? I wanted to try out repeating notifications
@mohammadumarkhan4634
@mohammadumarkhan4634 7 жыл бұрын
You have to give 60 to the "timeInterval" as it is required when we are trying to repeat the notification. Hope its helpful.
@CesarRodriguez-xj4gb
@CesarRodriguez-xj4gb 7 жыл бұрын
I want to create a new notification, everytime a new record is inserted in a MySql Table. How can I accomplish that?
@zxy6367
@zxy6367 7 жыл бұрын
can you please write codes for my app? I need my app push differ notifications every 1 hour, that's mean there is 24 notifications per day and I need to add specific sound for each notification... please write this codes for me
@jayd9203
@jayd9203 6 жыл бұрын
Love your videos. You do a great job of explaining and keeping on task and simple. Please note that the description of this video is incorrect. It says “Location” Notification not Local Notification. The title is correct and the description is incorrect. I was looking for a Location example.
@Mr_Jai_Kalra
@Mr_Jai_Kalra 6 жыл бұрын
superb
@luthiers5488
@luthiers5488 5 жыл бұрын
make another one with sound notifications
@zxy6367
@zxy6367 7 жыл бұрын
please we need tutorials about " How can add specific sound of local notifications from our library " and " How can make every one hour push local notification with specific message and sound " I really need this tutorial to finish my app 😥
@RajeshKumar-cr2jg
@RajeshKumar-cr2jg 5 жыл бұрын
Hey greate video yar... but i have small doubt , how can i pass string to UNNotificationRequest and how to get that strind after recievind notification Already I have tried I'm getting this error Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key raj.' please make a reply to me if you can
@lawanbrown16
@lawanbrown16 7 жыл бұрын
In app Delegate add this call ( UIApplication.shared.applicationIconBadgeNumber = 0) inside of the applicationDidBecomeActive function in order to make the red badge number go away once the notification or app is called.
@lukee386
@lukee386 7 жыл бұрын
I tried this with a switch because I would like to be able to turn notifications on or off within the app but it crashes every time I turn the switch on. Any help would be appreciated :)
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Hi, do you have the error message?
@lukee386
@lukee386 7 жыл бұрын
This is what came up in my console libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Hi, was there anything before that? Unfortunately I would not be able to tell you the specific error based on that line.
@bacci8048
@bacci8048 7 жыл бұрын
Hey there, I did this with a switch too and it crashes indeed when it is on, but that is because when a time interval is repeating the lowest value you can input has to be equal to 60! (as stated in the crash log) Try it like this and it should work perfectly fine.
@lukee386
@lukee386 7 жыл бұрын
Thanks so much! Any idea how to make it so if the switch is on it enables notifications and if its not it does nothing. i have an if statement if (sender.isOn == true) { DO code} but i dont know what to do for the false
@staraptorop6386
@staraptorop6386 7 жыл бұрын
very helpful video, but could you link github next time?
@muhammadhaider112
@muhammadhaider112 7 жыл бұрын
NotificationApp[748:12845] [MC] Reading from private effective user settings. how to resolved it??
@sebastianposada8129
@sebastianposada8129 6 жыл бұрын
I can't drag the button in 1:15 of the video
@muhammadhaider112
@muhammadhaider112 7 жыл бұрын
i have tried to this code but on click there is no show pushnotificatio right here?? can you help me??
@InnocentPatient
@InnocentPatient 7 жыл бұрын
Did you solve it?
@daveh.6098
@daveh.6098 7 жыл бұрын
nice
@viktorkuzmanov3086
@viktorkuzmanov3086 7 жыл бұрын
Hey dude, I wonder how can I make several different notifications with different categories with different actions but in somewhat more professional with struct or class or whatever because I am trying to make those and I get the notifications but not the actions? Here is a link to my problem stackoverflow.com/questions/47336285/ios-local-notifications-are-missing-action-buttons
@abdullahalfarsi5404
@abdullahalfarsi5404 5 жыл бұрын
your accent sound like Arnold accent
@donatasaviltis935
@donatasaviltis935 8 жыл бұрын
It's the same video as "How To Add Answer Alternatives To Your Notifications In Xcode"
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
Noooo, this is embarrassing:| Now this video is at least right. Then I will have to upload the right version of the other video as well. Will get there:)
@HishamBumedian
@HishamBumedian 8 жыл бұрын
can you please make a video about admobbanners in a sprite kit game? and how to make them hide and appear in specific scenes only
How To Use Core Data In Xcode 8 (Swift 3.0)
14:05
The Swift Guy
Рет қаралды 70 М.
REAL MAN 🤣💪🏻
00:35
Kan Andrey
Рет қаралды 10 МЛН
Wait for it 😂
00:19
ILYA BORZOV
Рет қаралды 11 МЛН
ЗНАЛИ? ТОЛЬКО ОАЭ 🤫
00:13
Сам себе сушист
Рет қаралды 4,1 МЛН
iOS Swift Tutorial: Rich and Interactive Notifications - iOS 10
22:46
How To Use Constraints And Size Classes In xCode 8
14:22
The Swift Guy
Рет қаралды 91 М.
The Vim Experience
45:19
Bog
Рет қаралды 140 М.
How To Create A To Do List App In Xcode 8 (Swift 3.0)
14:58
The Swift Guy
Рет қаралды 91 М.
How to Animate a Button Menu (iOS, Xcode 8, Swift 3)
20:02
Mark Moeykens
Рет қаралды 56 М.
Remote Notifications! (Firebase : Swift 2 in Xcode)
12:48
Jared Davidson
Рет қаралды 62 М.
Handmade Hero Day 001 - Setting Up the Windows Build
1:13:51
Molly Rocket
Рет қаралды 363 М.
How To Pass Data Between View Controllers In Xcode 8 (Swift 3)
8:42
How To Create Custom Tableview Cells In Xcode 8 (Swift 3.0)
10:55
The Swift Guy
Рет қаралды 93 М.
Table View Cell Action In Xcode 8 (Swift 3)
12:28
The Swift Guy
Рет қаралды 110 М.
REAL MAN 🤣💪🏻
00:35
Kan Andrey
Рет қаралды 10 МЛН