Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

APNs PHP

No security coverage
View on drupal.org

This module provides a Drupal service to send push notifications to Apple devices using the Apple Push Notification service. It acts as a wrapper for the edamov/pushok library, requiring developers to write code to utilize its functionality.

This module integrates edamov/pushok as a Drupal service, providing a wrapper for sending push notifications to Apple devices through the Apple Push Notification service (APNs).

This module is a community implementation and is not affiliated with the edamov/pushok project.

This is a developer module — you will need to write code against the service it exposes for it to be useful.

Warning: This is an API module and is not finalized. It could change at any time.

Submit bug reports and feature suggestions, or track changes in the issue queue.

Push Notifications for Mobile Apps

This module is part of a suite of modules for sending push notifications to mobile apps while maximizing user privacy; see the docs for an overview and installation instructions for all modules.

Table of contents

  • Requirements
  • Installation
  • Configuration
  • FAQ
  • Maintainers

Requirements

This module requires no modules outside of Drupal core.

The edamov/pushok library is pulled in automatically via Composer.

Installation

Install as you would normally install a contributed Drupal module. For further information, see Installing Drupal Modules.

Configuration

  1. Enable the module at Administration » Extend.
  2. At /admin/config/system/apns_php, set the team ID, key ID, app bundle ID, certificate path, and certificate secret.

How to get the configuration credentials

You will need an Apple Developer account.

See Apple's documentation: Get a key identifier.

  1. Go to Keys.
  2. Create a new key for sandbox and another for production (or a single key for both).
  3. Give the key a name and select APNs.
  4. Configure the key using the button (set the environment).
  5. If you want to restrict the key to just a single app, set the "Key restriction" to "Topic Specific" and the topic to the app bundle ID.
  6. Register the key.

Do NOT commit the key to your repository.

You need to know the Key ID.

If your private files directory is inside your webroot, move it outside your webroot. (If your host doesn't let you do this, get a new host.)

FAQ

Q: How can I send a test message?

A: Go to /admin/config/system/apns_php/test.

Activity

Total releases
3
First release
Oct 2025
Latest release
1 month ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.0.0-beta1 Pre-release Jun 13, 2026
1.0.0-alpha1 Pre-release Oct 31, 2025
1.0.x-dev Dev Oct 31, 2025