@@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.
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?
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.
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,
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.
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?
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?
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.
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 :)
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.
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
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
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
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.
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
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.
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 😥
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
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
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:)
Hi Swift Guy,
Great tutorial and I love it. I love how you straight up explain and go into the code.
Thaaaaaaaaaaank you very much, I watched a lot of tutorials but no one like you, you are the best.
haha, thanks;)
Woo man Every HW I have done so far was by your videos help. Thank you so much
You are welcome!:)
U deserve more views man , great tutorials , keep up
Thank you!:)
Dude, these are great, I hope you keep uploading :)
I will!:)
Great vids bro much respect from Jamaica
good tutorial, simple, fast and easy. Get my like!
Thank you:)
wow
your the best develop youtube on the world ;)
haha, thanks!
@@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.
I needed this so much. Thank you.
Thanks so much for uploading this!
Glad you enjoyed it!:)
Thanks. Another great tutorial. One question: How can i make badge go away after closing the app? That red number 1 stays there forever.
Any thoughts on starting the notification at a later date and having it repeat ?
Do u have any idea how to get notifications on certain date??
Thanks bro!! You made it look like easy :)
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?
I wish you success and development my friend
thanks;)
you have feacbook man i need add can you be new freind :)
whats the badge used for?
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.
so usefull! ty
Glad to hear that, you are welcome!:)
thanks for the help :)
if i want to used this notification with a DatePicker what I have to change in this tutorial? thx man very nice tutorial
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,
Hello, how can I set the trigger to happen when a variable is less than a certain value???
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.
forgot to mention . . i mean . . push notification triggered by id * . .
great tutorial bro!
can you make a tutorial on inapp purchase?
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?
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?
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.
Can you do in app purchases tutorial
Please make video about relationships in core Data.
Wow.... respect you
:(
how can i send notification through multipeer connectivity frame work?
Is it also possible to create a notification which is only displayed, if something happened in my app?
Definitely, you simply trigger the notification within the function that you want
superb
So after you get the notification you see that little red ball on the app icon and it wont go away.. help?
Did u find out how to remove this?
Please upload videos on sidebar menu
I can't drag the button in 1:15 of the video
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 :)
Hi, do you have the error message?
This is what came up in my console
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
Hi, was there anything before that? Unfortunately I would not be able to tell you the specific error based on that line.
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.
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
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
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?
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
You have to give 60 to the "timeInterval" as it is required when we are trying to repeat the notification. Hope its helpful.
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.
I want to create a new notification, everytime a new record is inserted in a MySql Table. How can I accomplish that?
make another one with sound notifications
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
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.
i have tried to this code but on click there is no show pushnotificatio right here??
can you help me??
Did you solve it?
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 😥
NotificationApp[748:12845] [MC] Reading from private effective user settings.
how to resolved it??
nice
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
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
very helpful video, but could you link github next time?
your accent sound like Arnold accent
It's the same video as "How To Add Answer Alternatives To Your Notifications In Xcode"
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:)
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