Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

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.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Oct 2025
Latest release
2 months ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

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