Views Integration

Last updated on
30 April 2025

The Push Notifications module integrates with the Views module.

Default View: Token List

The module provides a default view that shows a list of all tokens registered on the site in a table format. The view allows users to filter by device type and exposes a username search box. To get the tokens list into the admin interface (/admin/config/services/push_notifications/tokens), follow these steps:

  1. Navigate to /admin/structure/views, find the view called "Push Tokens" and enable it
  2. Flush all caches
  3. Optional: Adjust the permissions for the view

 Push Token List

Customized Push Token View

If the default view does not fit your needs, you have several options. Either override the default view at /admin/structure/views/view/push_tokens/edit. Alternatively, create a custom view at /admin/structure/views/add. Set the content to "Push Token" when you create a new view. You can add chose from the following fields related to the Push Notifications module:

  • Device Type (iOS or Android)
  • Timestamp this token was created / last updated.
  • Push Token
  • UID associated with this token

For a detailed documentation on creating and editing views, refer to the Views documentation.

Help improve this page

Page status: Not set

You can: