• Home
  • Services
    • Col 1
      • Tech & Analytics
      • Web Development
      • Technical Audit
      • Analytics & Tracking
    • Col 2
      • Growth Marketing
      • SEO Strategy
      • SEM & PPC
      • Social Growth
    • Col 3
      • AI & Strategy
      • Al Search (GEO)
      • SEO Content
      • Growth Consulting
    • Col 4
      • Operations & CRO
      • Conversion (CRO)
      • AI Automation
      • Full-stack Ops
  • Projects
    • Strategies
    • Plugins
    • Extensions
    • Creatives
  • Insights
  • About
  • Contact
  • Chinese
    • English
FREE ANALYSIS
  • Home
  • Services
    • Col 1
      • Tech & Analytics
      • Web Development
      • Technical Audit
      • Analytics & Tracking
    • Col 2
      • Growth Marketing
      • SEO Strategy
      • SEM & PPC
      • Social Growth
    • Col 3
      • AI & Strategy
      • Al Search (GEO)
      • SEO Content
      • Growth Consulting
    • Col 4
      • Operations & CRO
      • Conversion (CRO)
      • AI Automation
      • Full-stack Ops
  • Projects
    • Strategies
    • Plugins
    • Extensions
    • Creatives
  • Insights
  • About
  • Contact
  • Chinese
    • English
FREE ANALYSIS
  • Home
  • Services
    • Col 1
      • Tech & Analytics
      • Web Development
      • Technical Audit
      • Analytics & Tracking
    • Col 2
      • Growth Marketing
      • SEO Strategy
      • SEM & PPC
      • Social Growth
    • Col 3
      • AI & Strategy
      • Al Search (GEO)
      • SEO Content
      • Growth Consulting
    • Col 4
      • Operations & CRO
      • Conversion (CRO)
      • AI Automation
      • Full-stack Ops
  • Projects
    • Strategies
    • Plugins
    • Extensions
    • Creatives
  • Insights
  • About
  • Contact
  • Chinese
    • English

RafaelMarreca Push Dispatch for Firebase Cloud Messaging

  • Home
  • Trends
  • RafaelMarreca Push Dispatch for Firebase Cloud Messaging
RafaelMarreca Push Dispatch for Firebase Cloud Messaging
  • 2026-05-26
  • by LethaldiranMX
  • Trends
  • 0 Comments
Developer rafael145a
Version v1.0.1
Active Installs 0 +
Requires / Tested 5.8 / 7.0
Last Updated 2026-05-25 5:56pm GMT
Official Link View Details →
Send push notifications to mobile apps via Google's Firebase Cloud Messaging — on post publish or via a notification composer.

RafaelMarreca Push Dispatch connects your WordPress site to your mobile app by sending notifications through Google’s Firebase Cloud Messaging (FCM HTTP v1) service. No PHP SDK, no Guzzle, no external PHP dependencies — just the WordPress HTTP API and the OpenSSL extension.

How it works

  • Uses topic subscriptions — your mobile app calls subscribeToTopic() for each topic it wants to receive. No device tokens are stored, no PII is collected, no extra database tables are created.
  • When a post is published, the primary category determines the topic name (configurable via Settings → RafaelMarreca Push Dispatch).
  • A dedicated notification composer (custom post type) lets you send manual push notifications with a custom title, body, topic, and optional deep link — without creating a real post.

Features

  • OAuth2 JWT authentication (RS256) for FCM HTTP v1
  • Automatic push on post publish, mapped by category
  • Manual notification composer with live phone preview and character counters
  • Deep link support (any custom URL scheme)
  • OAuth2 access token cached for 55 minutes to minimise round-trips
  • Service account JSON stored outside the database with .htaccess deny + chmod 600
  • Idempotent dispatch — republishing never resends

Requirements

  • A Firebase project with Cloud Messaging enabled
  • A Firebase service account JSON (downloaded from the Firebase Console)
  • PHP openssl extension (bundled with most hosts)
  • Your mobile app must call subscribeToTopic() for each topic

Disclaimer

Firebase, Firebase Cloud Messaging and Google are trademarks of Google LLC. This plugin is an independent, third-party integration and is not affiliated with, endorsed by, or sponsored by Google LLC.

Service Account Setup

In the Firebase Console: ⚙ Project settings → Service accounts → Generate new private key → download the JSON → upload it in the plugin settings.

The file is stored in wp-content/uploads/rafaelmarreca-push-private/ with .htaccess deny rules and chmod 600. It is never stored in the database.

Mobile App Setup

Your app needs to call subscribeToTopic(getMessaging(), '<topic-name>') to receive notifications for a given topic. The Firebase Cloud Messaging v1 API delivers to zero devices if no device is subscribed.

Example (React Native / Firebase JS SDK):
await messaging().subscribeToTopic(‘all’);

External services

This plugin relies on two external services operated by Google LLC in order to deliver push notifications. Both are part of the Google Cloud / Firebase platform. The plugin will not send any data to them until you configure it with a Firebase service account JSON and either publish a post (with auto-send enabled), publish a notification via the composer, or click “Send test” on the settings page.

1. Google OAuth2 (oauth2.googleapis.com)

  • What it is and what it is used for: Google’s OAuth2 token service. The plugin needs a short-lived access token to authenticate against Firebase Cloud Messaging. To obtain it, the plugin signs a JWT locally with the private key from your service account JSON and exchanges it for an access token.
  • When data is sent: Once when the cached access token expires (every 55 minutes) and on the first send action.
  • What data is sent: A POST request to https://oauth2.googleapis.com/token containing the OAuth2 urn:ietf:params:oauth:grant-type:jwt-bearer grant and a signed JWT. The JWT contains your service account’s client_email, the scope https://www.googleapis.com/auth/firebase.messaging, the audience URL, and issued-at/expiration timestamps. No WordPress user data, no post content, and no visitor data is sent.
  • Provider: Google LLC
  • Terms of service: https://policies.google.com/terms
  • Privacy policy: https://policies.google.com/privacy

2. Firebase Cloud Messaging (fcm.googleapis.com)

  • What it is and what it is used for: Google’s push notification delivery service. The plugin uses the FCM HTTP v1 API to publish a notification to a topic that your mobile app has subscribed to.
  • When data is sent: Every time a notification is dispatched — that is, when a post is published (with the auto-send option enabled), when a notification is published via the “Notifications” composer, or when the administrator clicks “Send test” on the settings page.
  • What data is sent: A POST request to https://fcm.googleapis.com/v1/projects/{your_project_id}/messages:send containing: the destination topic name (e.g. “news”), the notification title (max 65 chars) and body (max 140 chars) you typed or that were extracted from your post, an optional deep link URL (when set in the composer), and the post ID / slug / category ID as plain identifiers in the data payload. No WordPress user data, no IP addresses, and no device identifiers are sent.
  • Provider: Google LLC
  • Terms of service: https://policies.google.com/terms
  • Firebase-specific terms: https://firebase.google.com/terms
  • Privacy policy: https://policies.google.com/privacy

By configuring the plugin with your Firebase service account JSON and publishing posts or notifications, you agree to the Google Terms of Service, the Firebase Terms of Service, and the Google Privacy Policy linked above.

  • cloud messaging,
  • firebase,
  • mobile,
  • push notifications,
  • topic,
  • wordpress plugin
Previous Post

NINZ Icons for Elementor

Next Post

Crawlantix AI Bot Tracker

Leave a Comment 取消回复

您的邮箱地址不会被公开。 必填项已用 * 标注

Categories

  • Thoughts (1)
  • Trends (1,242)
  • Tutorials (1)

Recent Posts

2026-10-14
Agrunert E-Rechnung for ZUGFeRD
2026-10-13
Rotascore Live Scores Widget
2026-10-12
Ettrick Escape Room Booking
2026-10-11
Qrlastica – QR Code Generator with
2026-10-10
Anchormender – Internal Link Suggestions, Orphan

归档

  • 2026 年 10 月
  • 2026 年 9 月
  • 2026 年 8 月
  • 2026 年 7 月
  • 2026 年 6 月
  • 2026 年 5 月
  • 2026 年 4 月

标签

accessibility admin AI analytics automation backup blocks booking calendar chat chatbot checkout contact form contact form 7 content customer support ecommerce elementor forms GDPR GEO gutenberg lead generation live chat llms.txt login openai optimization payment gateway performance popup privacy products rest-api Schema security SEO shipping shortcode support tracking whatsapp widget woocommerce wordpress plugin
  • shape1
  • shape2
  • shape3
  • shape4
  • shape5
  • shape6
  • shape7

Newsletter SignUp!

    About Us

    GROWTH,ARCHITECTED.
    Empowering global brands through data-driven SEO, high-performance web development, and AI-forward strategies.

    Information

    • Extensions
    • Strategies
    • Creatives
    • Plugins

    Services

    • AI & Strategy
    • Growth Marketing
    • Operations & CRO
    • Tech & Analytics

    Office Address

    • Nan'an District, Chongqing
    • +86-133-1028-2690
    • [email protected]
    • +86-133-1028-2690
    © Copyright AEOSUB 2026 | Digital Growth & Full-stack Operations
    • Home
    • About
    • Case Study
      • Case Study 1
      • Case Study 2
      • Case Study 3
      • Case Study 4
      • Case Study 5
    • Elements
      • Blog
        • Blog Post 1
        • Blog Post 2
        • Blog Post 3
        • Blog Post 4
        • Blog Post 5
        • Blog Post 6
      • Service
        • Service Gallery 1
        • Service Gallery 2
        • Service Gallery 3
        • Service Gallery
        • Service Gallery 5
      • Team
        • Team Gallery 1
        • Team Gallery 2
        • Team Gallery 3
      • Testimonial
        • Testimonial – 1
        • Testimonial – 2
        • Testimonial – 3
      • Contact Info Box
        • Contact Info Box 1
        • Contact Info Box 2
      • Info Box
        • Info Box 1
        • Info Box 2
        • Info Box 3
      • Miscellaneous
        • Brand Showcase
        • Counter 1
        • Progress Bar
        • Progress Box Image
        • Radius Button
        • Section Title Subtitle
      • Pricing
        • Pricing Plan 1
        • Pricing Plan 2
        • Pricing Plan 3
        • Pricing Plan 4
        • Pricing Plan 5
    • Pages
      • Service
        • Service Archive
      • Case Study
        • Case Study Archive
        • Single Case Study 1
        • Single Case Study 2
        • Single Case Study 3
      • Team
        • Team Gallery 1
        • Team Gallery 2
        • Team Gallery 3
      • Typography
      • 404 Error
    • Blog
      • Blog 1
      • Blog 2
      • Blog 3
    • Contact
    Follow Us
    FREE ANALYSIS
    • Home
    • Services
      • Col 1
        • Tech & Analytics
        • Web Development
        • Technical Audit
        • Analytics & Tracking
      • Col 2
        • Growth Marketing
        • SEO Strategy
        • SEM & PPC
        • Social Growth
      • Col 3
        • AI & Strategy
        • Al Search (GEO)
        • SEO Content
        • Growth Consulting
      • Col 4
        • Operations & CRO
        • Conversion (CRO)
        • AI Automation
        • Full-stack Ops
    • Projects
      • Strategies
      • Plugins
      • Extensions
      • Creatives
    • Insights
    • About
    • Contact
    • Chinese
      • English
    Follow Us