0

How do I create notifications for my API updates

API https://code.sololearn.com/W0ZKN4Ulk6yu/?ref=app

1st Oct 2020, 1:00 PM
Evans Frimpong
Evans Frimpong - avatar
17 Réponses
+ 2
https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API/Using_the_Notifications_API Here's a good course on notifications
2nd Oct 2020, 10:39 PM
Danila Egorenko
Danila Egorenko - avatar
+ 3
When updated, then create a notification
2nd Oct 2020, 10:40 PM
Danila Egorenko
Danila Egorenko - avatar
+ 3
Unfortunately, I do not understand API Weather. But I understand that with a return response from the API, a request for notification of this should be triggered. When the weather API returns you a new value, attach it to notification.
2nd Oct 2020, 10:47 PM
Danila Egorenko
Danila Egorenko - avatar
+ 3
Link this after line 23.
2nd Oct 2020, 10:48 PM
Danila Egorenko
Danila Egorenko - avatar
+ 3
You have not defined a notification. Define it to 23 lines.
2nd Oct 2020, 10:54 PM
Danila Egorenko
Danila Egorenko - avatar
+ 3
2nd Oct 2020, 10:55 PM
Danila Egorenko
Danila Egorenko - avatar
+ 2
Notifications API
2nd Oct 2020, 10:35 PM
Danila Egorenko
Danila Egorenko - avatar
+ 2
Notification.requestPermission().then(function(result) { console.log(result); });
2nd Oct 2020, 10:38 PM
Danila Egorenko
Danila Egorenko - avatar
+ 2
Okay, I'll try later. If I really helped you a little bit, please put plus 1 to my answers. I really want to help you)
2nd Oct 2020, 11:07 PM
Danila Egorenko
Danila Egorenko - avatar
+ 2
Thanks you 😊
2nd Oct 2020, 11:16 PM
Danila Egorenko
Danila Egorenko - avatar
+ 1
Danila Egorenko can you please try it with my code (just added it to my question) for me to see how it works
2nd Oct 2020, 10:43 PM
Evans Frimpong
Evans Frimpong - avatar
2nd Oct 2020, 10:36 PM
Evans Frimpong
Evans Frimpong - avatar
0
Danila Egorenko so how does it operate
2nd Oct 2020, 10:39 PM
Evans Frimpong
Evans Frimpong - avatar
0
Danila Egorenko notification not defined. What should I do
2nd Oct 2020, 10:51 PM
Evans Frimpong
Evans Frimpong - avatar
0
Ok thanks. But if you can please try something for me. The code is complete I just wanted to add the notification feature. 😊
2nd Oct 2020, 10:59 PM
Evans Frimpong
Evans Frimpong - avatar
0
I'm on it
2nd Oct 2020, 10:59 PM
Evans Frimpong
Evans Frimpong - avatar
0
Danila Egorenko sure😊👍🎶🎶
2nd Oct 2020, 11:16 PM
Evans Frimpong
Evans Frimpong - avatar