Simon do you know that God will bless you, your family and everybody around you, because everything i know in ionic you thought me?... you are a blessing to the world!. Thank you so much!
@ernestcasey26893 жыл бұрын
You all prolly dont care at all but does anybody know a trick to log back into an instagram account? I stupidly forgot the password. I would appreciate any assistance you can offer me!
@NoNdAs904 жыл бұрын
why does not show the click event ? it's only show the trigger event
@rameezarain33003 жыл бұрын
You're a Life saver
@prabhashibuddhima75833 жыл бұрын
Hi Simon, can you do a tutorial about ionic local notifications with sound
@Akhilashok972 жыл бұрын
how to stop local notifications for a particular time like when we using a toggle button to mute notifications the scheduled notification will not come please help
@DibyenduSaha4 жыл бұрын
Hello Simon, have one small request, if you can do the same tutorial using capacitor, it will be really helpful. I am really struggling with setting large icon (one that sticks to the right of the notification in Android) using FCM Push Notification, then I realize it can be achieved using data message from FCM and that's too with Local Notification, and now I am struggling with creating custom Local Notification using Capacitor (as I am not using Codorva in my project). Last but not the least thank you for the videos that you publish on Ionic, I have learnt a lot following your tutorials. Thank you. :)
@luiszamoraveliz28624 жыл бұрын
Simon greatings from Ecuador you are the best keep uploading info about ionic.
@galaxies_dev4 жыл бұрын
Thanks, will do!
@motifdata19812 жыл бұрын
Hi Simon, Local Notifications stop working if the app is in the background for a while or when the device is low in memory.. Any suggestion to resolve this issue on IOS Devices
@vaibhavrao49754 жыл бұрын
How can I show 4 action button in local notifications? It shows only 3...If i add more it takes only first 3
@vaibhavrao49754 жыл бұрын
Also Can I add images instead of action button text? Simon please help
@reshmahegde27024 жыл бұрын
Having same issue.Any solution for this?
@rkkhadka13 жыл бұрын
Is there a way to handle onclick event when app is opened from killed state? Many thanks
@ppmedel5 жыл бұрын
Thanks a lot for this video, you are great!!
@jennyberliana51513 жыл бұрын
It's not work on android device, bro... You can run "ionic cordova run android" without error message, but the notification not displayed...
@calinstroescu29623 жыл бұрын
2:45 everyone watching this just grabbed a glass of water.
@galaxies_dev3 жыл бұрын
I just did, should do it more often :D
@ynievesdotnet81545 жыл бұрын
Thanks Simons... I see the video now.
@BeOriiGiinaL2 жыл бұрын
Hallo Simon! I need a daily notification so I implement it as you show did, but it triggers every second in that minute. Only when the minute is passed it stops. How can i make it to trigger only once?
@galaxies_dev2 жыл бұрын
Then I guess your format for the scheduler is wrong!
@israelayokunnu79744 жыл бұрын
Hey Simon, I hope you are well. the badge on app icon does not show the value passed. I did just like the doc instructed badge.set(5) does not display 5. Please help out. Thanks
@batmantutorial12545 жыл бұрын
thanks man superb video
@kssingh85142 жыл бұрын
hey, is auto populate local notification is possible on particular time without click in any button? it should fire on at partiular time without open app
@fadilchady55134 жыл бұрын
Hi Simon, my scheduled notification is working correctly but the on click event does not fire when app is closed.
@abhiramreddy12543 жыл бұрын
Hi Saimon, I am building a video calling app using ionic and connectycube. But i am facing issues with showing a whatsapp like call notification which persists on the UI until the ring timeout. I am not able to do that. I am just able to send a notification. Can you please help me with this? Thanks, Abhiram
@Tecnologiapamigente4 жыл бұрын
ERROR in src/app/home/home.page.html(18,13): : Property 'Scheduled' does not exist on type 'HomePage'. Did you mean 'scheduled'? [ERROR] An error occurred while running subprocess ng.
@galaxies_dev4 жыл бұрын
Then you haven't created the scheduled = []; variable at the top of your home page.
@moradabdelgaber59585 жыл бұрын
Nice Video , Simmon . Please , keep going :)
@fk_surfcasting5 жыл бұрын
Hello Mr. Grimm, thank you for your amazing videos, i have a question, can we use local notification, when app is close or is there any other way to do that.
@galaxies_dev5 жыл бұрын
Yes local notifications will also be executed when the app is in the background!
@fk_surfcasting5 жыл бұрын
@@galaxies_dev thank you for your reply Mr. Grimm. God be with you.
@kowsikpaduchuri5 жыл бұрын
Does notification work even if app is closed??? Not in background
@ideasolutionbz5 жыл бұрын
yes it still works. once the user has subscribed to receive local notifications.
@ghiffaribara29495 жыл бұрын
@@ideasolutionbz I tried to close it and kill it with task manager, didn't get any notification at all but it works in the background.
@kssingh85142 жыл бұрын
@@ideasolutionbz how to do that?
@naimajro85033 жыл бұрын
Hi @Simon, I want to have to types of notifications, with the native sound of the notification, and one with the sound that I want to add. The only way to change the sound was on capacitor.config.js, I tried with creating channels and it plays only the native sound of the phone, it didn't work when I change the sound. Is there a way to change the notification sound using a button or similiar?
@DailyDoozeOfficial4 жыл бұрын
Unfortunately this does not work for me: "Unknown property" for nearly every property which should be assigend to localNotification (e.g. icon, trigger,..)
@galaxies_dev4 жыл бұрын
Check out the signature of the object then, this might have changed in recent versions!
@DailyDoozeOfficial4 жыл бұрын
Thanks for your answer! I was able to identify the issue (for all who are encountering the same: Testing the functionality using the DevApp won't work! Somehow this is a bug. Test it on an emulator or a real device!). Your explanation still works perfectly. Great video!
@littledavil1004 жыл бұрын
Your video is good. But I need to send notify when my app is closed or killed by user. Please advise me. Thank you.
@galaxies_dev4 жыл бұрын
Normally local notifications are added to the system, so they should pop up anyways! Otherwise you could also check out Push notifications!
@kennethmendoza5 жыл бұрын
I do not work daily notifications, they only work on the day I activate the notification. Someone has this same error.
@lyrics90384 жыл бұрын
i got the error Unexpected value 'LocalNotifications' imported by the module 'AppModule'. Please add a @NgModule annotation. please help i dont find a solution for the error pleeeaaasee
@galaxies_dev4 жыл бұрын
You need to add it to the array of providers, not the imports!
@egaldamez25 жыл бұрын
Amazing video Simon, thanks but what about the push notifications? How we can handle that
@galaxies_dev5 жыл бұрын
Hey Ernesto, that's a different topic that also needs a server or service to actually send the notifications. I've got courses on that topic inside the Ionic Academy as well!
@OusmaneSall5 жыл бұрын
Merci, très bon support !!!
@fethiachour7115 жыл бұрын
thank you. great video. Does it work with web app?
@galaxies_dev5 жыл бұрын
Hmm apparently not because it's a Cordova plugin :/
@dellciofranciisco5 жыл бұрын
Hello Sam. Trigger dosn't work.
@imranZmehdi4 жыл бұрын
I am developing an App for Android. The notifications work fine, but as soon as i kill or close the app, it does not trigger any notifications. Can you please explain? And one other thing is, that now, for higher android API, you have to define a channel for each notification in order to register them.
@galaxies_dev4 жыл бұрын
I haven#t checked out the latest behaviour on Android, I'll see if I can find anything relevant for this :/ Otherwise I guess you might have to switch to push notifications!
@creativeartdesign-mrkamal8935 жыл бұрын
Great work, did you manage to use sound: 'file://assets/audio/sms.mp3' in your notification?? I have struggled to get any sound to use it but could not. cordova.plugins.notification.local.schedule({ title: "New Message", message: "Hi, are you ready? We are waiting.", sound: "file://sounds/message.mp3", icon: "my.domain.de/avatar/user#id=123" });
@galaxies_dev5 жыл бұрын
Might be related to this bug: github.com/katzer/cordova-plugin-local-notifications/issues/1757
@sitegotop37405 жыл бұрын
@@galaxies_dev For me is working on Nougat and not on pie github.com/katzer/cordova-plugin-local-notifications/issues/1605
@josephadu49085 жыл бұрын
I like to redirect users to a particular page on the app when they click on the notification when the app is closed . @Simon Grimm can you help with an idea of how to get this done?
@saidmuhd6114 жыл бұрын
very good, I have followed all the steps but my app stops once locat ionotification.schedule() get called
@galaxies_dev4 жыл бұрын
Try to add some logs or add a catch block to the promise, perhaps there's an error thrown!
@danielgonzalezz4 жыл бұрын
Hi Simon, How I do to set notification icon in my push notification?. I don't have idea how I do it.
@galaxies_dev4 жыл бұрын
I think it usually uses the app icon!
@KonstantinStanchev4 жыл бұрын
Hi Simon! Amazing video as always! One quick question - the observable fires multiple alerts, when you have activated more than one "trigger". How can you prevent this?
@galaxies_dev4 жыл бұрын
What you mean by multiple triggers? You should only have this one trigger block and inside handle what should be done based on the data of the notification!
@KonstantinStanchev4 жыл бұрын
@@galaxies_dev Sorry, I did not explain it well. The notifications work as expected, but when I click on one of them, the showAlert dialog appears multiple times (as many times as I have scheduled a notification). Can't really understand why. I need to unsubscribe in some way?
@kssingh85142 жыл бұрын
hey, is it possible to trigger local notification when app is closed??
@durat5 жыл бұрын
cant set up "pop on screen " notification, i need to config manually in app settings , Android 9
@Theo-gw1wc5 жыл бұрын
Me too, heads up notification doesn't work, it only appears on notification bar. Please could someone helps us ?
@durat5 жыл бұрын
@@Theo-gw1wc I can't find solution.
@Theo-gw1wc5 жыл бұрын
@@durat Same..... Android 7 and 9 doesn't show it properly, hope someone have the solution, I don't know if I'm missing something with permissions or with notifications setting while sending them but I definitely can't find a solution...
@肖鹏-b5f5 жыл бұрын
Great video, but how can I push notification on the real app? like if I have a button, when I click on it, it will call the function to send a notification to all users who download this app. Look forward to you reply!
@galaxies_dev5 жыл бұрын
That can't be done with local notifications and also not simply in one app. You have to use a service like OneSignal for that as well.
@ideasolutionbz5 жыл бұрын
great video Simon. Is there a way to schedule daily notifications but exclude specific days? for example exclude sunday.
@galaxies_dev5 жыл бұрын
I think I would manually schedule for all the other days with their name/number and just leave out the Sunday! That means you need to call schedule 6 times but then it should work :)
@kssingh85142 жыл бұрын
hey, is it possible to trigger local notification when app is closed??
@muratonder87843 жыл бұрын
Hi. How can I use the local notification when the application is closed
@galaxies_dev3 жыл бұрын
The are scheduled at OS level so it should defintiely still trigger!
@muratonder87843 жыл бұрын
@@galaxies_dev Thanks for the answer. Actually I wanted to ask this. I want to receive a local notification when the data is updated while the application is closed. So the time is not clear.
@ideasolutionbz5 жыл бұрын
also is there a way to get all notifications as they come in without the need of tapping the get all button? in other words the list will keep populating the notifications automatically as they are received.
@galaxies_dev5 жыл бұрын
In that case you would have to call the getAll function yourself whenever you receive a notification, it's apparently not an Observable to which you could subscribe :)
@mr_reeshab5 жыл бұрын
Hey simon .. how to use hardware back button while debug my app my back button not working ... how i fixed it.?? Please
@galaxies_dev5 жыл бұрын
You can subscribe to the hardware back button, but in general it should work of course out of the box like it does everywhere else!
@arulyanasokan16584 жыл бұрын
Will i be able to handle the notifications even if the app is killed? I mean can i run a function inside my ionic app on recieving a notification with the app closed, screen locked?
@galaxies_dev4 жыл бұрын
I think you have a small chance to run code, but I wouldn't count on it. Also if the app is closed, you need to make sure the push can actually "awake" the app in the background which might not work very well.
@arulyanasokan16584 жыл бұрын
thanks for information Mr Simon.
@arulyanasokan16584 жыл бұрын
@@galaxies_dev is there any way to run my function in background while the app being killed on a scheduled time. For ex. i want to run a specific function daily at 4pm
@faithium70775 жыл бұрын
I tried to schedule a notification using trigger : { every : { hour: x, minute: y } } but i am getting spammed of notifications till the minute has passed (I guess). Does this happen to someone else?
@ciro7265 жыл бұрын
i had resolve it adding count: 1 in your trigger: { every: { hour: 1, minute: 56 }, count: 1 } or add second: 0 trigger: { every: { hour: 1, minute: 56, second: 0 } }
@fernandorafaeldossantos39715 жыл бұрын
I would like a translation into Portuguese
@galaxies_dev5 жыл бұрын
Ok I know a bit of Spanish but I'm lost at Portuguese x) Guess I need some translation services for the future!
@MultiDeineMutter5 жыл бұрын
Are you using capacitor for the emulation? Can you tell me if it is possible to emulate with capacitor without opening xcode?
@galaxies_dev5 жыл бұрын
I'm still using Cordova since Capacitor is not yet in a stable version. AFAIK you might be able to use capacitor without opening the project but there's nothing wrong with Xcode ;)
@learnwithkhubbaib5 жыл бұрын
Hello sir i am creating cricket live score APP and i want people can set push notifications and when event occur like six , four and wicket i can send a push notification. can you give me any idea how i can do that with ionic and angular ?
@galaxies_dev5 жыл бұрын
You can check out my video on OneSignal push notifications for this!
@vyshnavkumar37694 жыл бұрын
hi this was a great vedio helped me a lot but I could not understand how to add some functionality to buttons of local notification, can any one help me with this
@galaxies_dev4 жыл бұрын
For the format, you can also check out the Github repo for local notifications!
@vyshnavkumar37694 жыл бұрын
@@galaxies_dev tq ,I got that but even after seeing GitHub repo I was confused on seeing the definition of the local notification plugin I got the correct code
@gopalakrishnaundrakonda87124 жыл бұрын
Hi I am getting the error like this Error: (node:24955) UnhandledPromiseRejectionWarning: CordovaError: Failed to fetch plugin git+github.com/katzer/cordova-plugin-local-notifications.git via registry. Probably this is either a connection problem, or plugin spec is incorrect. Check your connection and plugin name/version/URL. Error: npm: Command failed with exit code null Error output:
@galaxies_dev4 жыл бұрын
Are you behind some firewall? Looks more like a general problem!
@gopalakrishnaundrakonda87124 жыл бұрын
@@galaxies_dev No, I am using my home network
@ideasolutionbz5 жыл бұрын
hi Simon. question. how can i check if the user hasPermission first before they are able to schedule notifications. in other words, when a user tabs the subscribe button, check first if the user has has permission first, if yes schedule notification. if no, request permission. i am trying to get it using an if else statement but its not allowing me. getting this error "this condition will always return false since the type '() => Promise' and 'boolean' have no overlap. kindly help. thanks
@galaxies_dev5 жыл бұрын
Maybe you are not using the Promise correctly? Because the plugin always returns a promise so you have to wait for the result before using it in an if/else!
@ideasolutionbz5 жыл бұрын
@@galaxies_dev i figured it out. it was that. i was using the promise incorrectly. thanks still. im trying to figure how i can write is equal to 1 or more than on. kindly help. this is what i have if (notifications.length === 1) { this.notificationReceived = true; } else { this.notificationReceived = false;
@ideasolutionbz5 жыл бұрын
i already figured it out. thanks still for sharing your knowledge with everyone
@sanucknotthinking41025 жыл бұрын
this can use on ionic 3 ?
@Thunderclaw935 жыл бұрын
Did you find out? I work with Ionic 3 as well.
@douglasDGmarques4 жыл бұрын
We can, the only difference is we have to install version 4 of Local Notifications, like this 👉🏻 npm install --save @ionic-native/local-notifications@4
@DeepakSharma-er4je4 жыл бұрын
I am having problem with local notification app while Gradel build in android , I followed all steps mentioned. Error : Cannot find import NotificationCompat . I'm importiong this - android.support.v4.app.NotificationCompat
@maheshverma77704 жыл бұрын
Hello Deepak, I am facing same issue, could you please let me know how could you fix it. Waiting for reply.
@marvin76204 жыл бұрын
@@maheshverma7770 maybe this is still helpful. I had the same issue currently. stackoverflow.com/questions/63135457/ionic-localnotifications-with-capacitor-cannot-find-notificationcompat
@burlamoses41213 жыл бұрын
@ Simon Grimm is it works even though app is closed?
@galaxies_dev3 жыл бұрын
Yes local notifications are scheduled inside the OS and appear even when the app is closed.
@HasiniDayanandaGPlus4 жыл бұрын
Simon. I have experience delay(2-3 min )on notification on andriod. ios it's on time. do you have any idea about that? also can I remove scheduled notification based on some condition, ex; only trigger when user hasn't completed some task. Notification need to setup daily, but need to trigger based on some condition.
@galaxies_dev4 жыл бұрын
After scheduling a notification, you can save the generated ID and with that ID you can also remove the notification later before it's sent!
@HasiniDayanandaGPlus4 жыл бұрын
@@galaxies_dev but how can I check condition before trigger the daily scheduled notification?
@aravindperiasamy96954 жыл бұрын
hello sir i want to have notification every hour but i am not receiving notification when the app is closed or killed.
@galaxies_dev4 жыл бұрын
If they are scheduled in the system they should be triggered regardless of if the app is open or not, so perhaps they are not scheduled correctly!
@aravindperiasamy96954 жыл бұрын
@@galaxies_dev I'm using Android 10 and should I need to add any thread or need to add any permission to receive local notification when app is closed or killed?
@darpandalal5 жыл бұрын
Will local notifications work if the application is killed ? And not running in background ?
@galaxies_dev5 жыл бұрын
Yes they do.
@imranZmehdi4 жыл бұрын
how to define custom sounds?
@luisrafaeloctaviano69923 жыл бұрын
Hello Simon, will this work on the web (browser)? Thanks in advance :)
@galaxies_dev3 жыл бұрын
No since it's using a Cordova plugin, it only works inside a native app!
@luisrafaeloctaviano69923 жыл бұрын
@@galaxies_dev Thanks for this Simon, I guess I'll try using other 3rd party notif services. :)
@KonstantinStanchev4 жыл бұрын
Do you think Capacitor local notifications is better than Cordova?
@galaxies_dev4 жыл бұрын
I haven't tried them with Capacitor, good idea to check them out!
@KonstantinStanchev4 жыл бұрын
@@galaxies_dev ok :)) thanks!
@moradabdelgaber59585 жыл бұрын
How to schedule multiple notifications with different trigger ?
@galaxies_dev5 жыл бұрын
Just create them one after the other, no problem!
@moradabdelgaber59585 жыл бұрын
@@galaxies_dev I'm trying to schedule delayed notifications if I use schedule(here one notification ) and scheduled it one by one only the last one is triggered . If I use schedule(notifications[ ]) it also work for the last one in the array . How could I solve this , please help ??
@robertoluisrodriguezherrer88924 жыл бұрын
tienes buenos tutoriales pero deberias incrementarle tus propios subtitulos en español
@gopalakrishnaundrakonda87124 жыл бұрын
i am getting this error Native: tried calling LocalNotifications.getAllScheduled, but the LocalNotifications plugin is not installed.
@NaveenKumar-dg7yz4 жыл бұрын
you got to run in emulator
@pablito47624 жыл бұрын
Ionic native Notification Plugin of this site: ionicframework.com/docs/native/local-notifications , is not working . No error after installation of plugin. No error after implementing functions as shown in your clip. But error when trying to build the app. Build Process: processReleaseManifest fails with following message: platforms\android\AndroidManifest.xml:28:13-35 Error: Attribute meta-data#android.support.VERSION@value value=(25.4.0) from [com.android.support:appcompat-v7:25.4.0] AndroidManifest.xml:28:13-35 is also present at [com.android.support:support-v4:26.1.0] AndroidManifest.xml:28:13-35 value=(26.1.0). Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml:26:9-28:38 to override.
@pablito47624 жыл бұрын
After removing the cordova local-notification plugin , build works again without any problems
@hungp92274 жыл бұрын
Can you please provide the source code??
@galaxies_dev4 жыл бұрын
The link is always below the video!
@rrahman-h6n5 жыл бұрын
Why not use Capacitor Native LocalNotification.
@creativeartdesign-mrkamal8935 жыл бұрын
Have you tried this plugin, does the sound and does work better than this one ?
@galaxies_dev5 жыл бұрын
Well why not use Cordova? Both are legit, but Capacitor is still in beta so I don't create a bunch of tutorials on using it as they will be outdated soon! But of course everyone can give capacitor a try, it's great and will be awesome once it reaches a stable version.
@adriannlara5 жыл бұрын
the sound is to low, grate video
@galaxies_dev5 жыл бұрын
Sorry Adrian, will turn up the sound next time. The mic records at a very low level (but with better quality though)