Este plugin no se ha probado con las últimas 3 versiones mayores de WordPress. Puede que ya no tenga soporte ni lo mantenga nadie, o puede que tenga problemas de compatibilidad cuando se usa con las versiones más recientes de WordPress.

Web Push

Descripción

This plugin uses the W3C Push API to allow you to send push notifications to anyone who visits your site and signs up for notifications.

Once you’ve installed and configured this plugin, anyone visiting your site/app in browsers that support the W3C Push API (Firefox and Chrome, at the time of writing) will be asked whether they want to receive notifications from your site. You will immediately be able to send push notifications to anyone who consents.

Configure the plugin in the Settings > Web Push section of your WordPress installation. Here you can set various pieces of configuration, including:

  • The title for push notifications that appear from your site
  • When to attempt to register your visitor for push notifications (e.g. after how many visits)
  • Which types of events should trigger push notifications (e.g. new posts, comments, updates to posts)

N.B.: This plugin requires your website to be served via HTTPS. Indeed, for security reasons, browsers enforce the HTTPS policy for the Push API and for Service Workers.

Capturas

  • Firefox notification on Windows.
  • Firefox prompt dialog on Mac.
  • Firefox notification on Mac.
  • Chrome prompt dialog on Android.
  • Chrome notification on the Android lockscreen.
  • Statistics in the dashboard.
  • Firefox notification on Linux.

Instalación

  1. Download and install the plugin from the WordPress.org plugin directory
  2. Activate the plugin through the “Plugins” menu in WordPress

Follow these additional steps for setting up GCM (Google Chrome) support. In the Settings > Web Push section of your WordPress installation are configuration settings for this plugin; there you will find additional information for setting up GCM.

Preguntas frecuentes

What browsers support the W3C Push API?

browser support for the W3C Push API currently exists in Firefox, Chrome, and Chrome for Android, with others likely to follow

What will push notifications look like?

That depends on the browser! Each browser will display your notifications somewhat differently, but in general the notifications will look appropriate for the device/OS/browser on which they are displayed

When / how often will visitors be asked about accepting push notifications?

The plugin is configurable; it is possible to modify when a visitor is prompted to accept push notifications (e.g. on the third visit to the site). Additionally, browsers may decide to suppress this notification, for example, if a user at one point selected a “never ask me again” response.

Reseñas

3 de septiembre de 2016 1 respuesta
Keep that way. Need few more things but very good indeed. I've noticed lack of db cleaning for unsubscribed ones. Master clean button will be good to be added. Custom push messages different from post notifications will be good option too. Detailed logs can be divided by browser. Combined notifications for new post and post update for the same post may make this perfect ad-don for any wordpress owner in future. I will send yo pot file in my native language(Bulgarian) in contribution.
Leer todas las 2 reseñas

Colaboradores y desarrolladores

Este software es de código abierto. Las siguientes personas han contribuido a este plugin.

Colaboradores

Traduce "Web Push" a tu idioma.

¿Interesado en el desarrollo?

Revisa el código, echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.

Registro de cambios

1.4.0

  • Fix bug where multiple notifications were shown when opening the browser for sites sending notifications with a high-frequency.
  • Allow disabling the automatic generation of a Web App Manifest for users that already have one for their site.
  • Performance improvements when sending notifications.
  • Misc improvements for the VAPID section in the settings page.

1.3.0

  • Support sending custom notifications (not tied to posts) from the Tools menu.
  • Fix for the VAPID settings when an invalid private key is used.

1.2.2

  • Improve dashboard graph.
  • If notifications on updates are disabled, don’t send notifications for already notified posts.
  • Fix sending notifications with unicode characters.

1.2.1

  • Support VAPID on more configurations (PHP 5.4+, OpenSSL is no longer required).
  • Honor push triggers options for quick edits.

1.2.0

  • Add support for VAPID (Voluntary Application Server Identification).
  • Show number of currently subscribed users in the dashboard widget.
  • Fix compatibility with WordPress < 4.1.0.

1.1.7

  • Support sending notifications for scheduled posts.
  • Improve performance while sending a large number of notifications by using curl_multi.
  • Add a per-post push preference.

1.1.6

  • Fix bug with the bell icon on some servers.
  • Fix bug with Safari.
  • Allow resetting the bell icon color to the default blue.
  • Always use HTTPS protocol to avoid mixed content warnings.

1.1.5

  • Improve performance when sending notifications.

1.1.4

  • Improve performance for websites that have many subscribers.

1.1.3

  • Allow customization of subscription button also for users who don’t have write privileges.
  • Improved performance.

1.1.2

  • Misc bug fixes and improvements to the subscription button interface.

1.1.1

  • Fix bug in the dashboard graph with long post titles.

1.1.0

  • Customization of the subscription button color.

1.0.0

  • New, improved, mobile and desktop interface for the subscription button and related tooltips.
  • Fixed minor bugs.

0.0.9

  • Improve heuristic for the SSL warning.
  • Show a preview of what the notification will look like in the settings page.

0.0.8

  • Fixed an update bug.

0.0.7

  • Improved update process.

0.0.5

  • Add meta box to choose whether to send notifications or not for each post.
  • Improve statistics interface.
  • Warn if the plugin is used without SSL.
  • Make the plugin work when WordPress is behind a SSL proxy.

0.0.4

  • Improved admin interface.
  • Support coexistance with other plugins using Service Workers.

0.0.3

  • Show graph for notification statistics in the WordPress Dashboard.

0.0.2

  • Support more detailed analytics (number of notifications sent and opened per post).
  • Workaround issues with WordPress running behind a HTTPS proxy.

0.0.1

  • Initial release.