V
V
Vladimir Ivanov2015-09-16 13:41:49
JavaScript
Vladimir Ivanov, 2015-09-16 13:41:49

Notifications are not shown in chrome for android, what should I do?

Hello everyone, I've run into this problem. I want to make pop-up messages in the chat, for this I use the Notification API, everything is good in the browser on the computer, but it doesn’t want to be shown on the phone. Although the documentation says that the Chrome browser for Android supports.
When I go to the page from my phone, I am prompted to show pop-up messages and I accept, but the messages themselves are not shown, here is the code

var notification = new Notification('Новое сообщение!!!', {									 
body: messages[user_id][mess].messages
});

Please help, what could be the problem? Can anyone come across

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wheelie, 2015-09-16
@Wheelie

Use Push API
https://developers.google.com/web/updates/2015/03/...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question