📜 ⬆️ ⬇️

Notifications on different platforms, what are they? Bonus on smart watches Moto 360



Unlike many companies that deal with notifications, we try to cover as many platforms as possible. Therefore, we have the most extensive experience of what alerts their advantages and disadvantages are, and we decided to share our experience with you.

We will talk about how different types of notifications on Chrome, Android, Safari, Firefox, iOS look. Which ones we use, which ones we can use and not much about how it works.
')
By the way, you can try almost all types on our website.

Alert methods



In all three cases, you should have a website, although if you create your add-on and send alerts via GCM with a payload, you can easily do without a website, but it is quite expensive, and in any case you will also need scripts on your side use google's api

However, we in PushAll, providing an intermediate service, can give you the opportunity to notify the audience without having a website at all, for example from the VKontakte group, or facebook or not at all without any other sites - just gather a team of like-minded people and notify it about important events. You can also create a feed from another site that you visit using RSS integration.

Below we describe what are the notifications on different platforms.

What they are in Chrome on the computer


Few visual differences.



1 is done through the standard Notification API, the second is done through the wrapper for the Service Worker. These alerts do not disappear - but image smoothing is not applied to them on many platforms. (you can notice the quality of the pictures)

3rd is made through Rich Notification. These alerts come through extensions, they may contain additional information, buttons, an image under the notification. More opportunities - but they are automatically hidden.



Also, when using the extension (Rich Notification) - it can stretch the image on the whole block - web pushes do not do this.

And in addition you can do so:



This is especially important because Soon there will not be a "bell" in chrome.

Alerts on Android




1. Alert came through Telegram


Benefits



disadvantages



Here's how it looks on a smart watch (Moto 360)



2. Alerts via Push API (same as on computer Chrome)


Benefits



disadvantages






3. Alerts through the full application


Benefits



disadvantages







IOS alerts


In general, the same telegram is not much different from the solution on android.



And native application (beta, new version in development):



From the flaws of alerts on iOS




Safari Alerts


We have so far tested only standard Notification API on web sockets.

It looks like this:



However, native notifications via APNS, it seems, will have another site icon, and so little will be different.

At the same time, it is necessary to understand that through APNS we also do not have the ability to track the arrival of an alert until the user clicks on it. Moreover, judging by the documentation, it is impossible to configure any working code for various actions.

Firefox Alerts





Firefox does not have its own push API service (for the time being), so we will use our socket-based service. However, FF has a lot of alert issues.

Benefits



disadvantages




The most important thing in alerts - do not bother. Before subscribing, explain how to unsubscribe, no need to throw a request to turn on alerts in the face. And it will be like here after a couple of weeks - people could not unsubscribe, just did not know how.

SocketPush


It works well, judging by the tests. For some reason, more people voted negatively than they tested at all (do not be so!)

But we will redo a bit of the algorithm, then delete all the devices added by SocketPush. Turning on will work even when the device is active (in the enabled state), that is, it will be possible to open a tab in the same safari or FF and receive pushy in 2-3 days.

And yes, it turns out EDGE isn't even supported by the Notification API.

Source: https://habr.com/ru/post/269439/


All Articles