I’m build a small app where I was the send the user a daily notification, what would be the best way to do this?

I looked at a tutorial on Local Notifications but when I follow the video I end up getting errors saying that this.localNotifications.on(‘click’, (notifcation, state) => … should only take 1 argument. Although it seems to work fine in the video and as far as I can see they are using ionic v3