Push notifications
Overview
Send web, Android, iOS, and Huawei push notifications from one API and dashboard.
Msgera Push lets you send notifications to websites, Android apps, iOS apps, Huawei devices, Flutter apps, and React Native apps through one unified API and dashboard composer. You bring your own platform credentials so your subscribers and tokens always belong to you.
How it works
- Create a Push App in the dashboard under
Push → Apps. Web Push VAPID keys are generated automatically; for mobile apps, upload your Firebase service account JSON, Apple APNs.p8key, or Huawei Push Kit credentials. - Install the SDK or web script following the interactive Install wizard on your app page. None of our SDKs prompt for notification permission on launch—call
requestPermission()from a user action. - Link subscribers to your users with
login(externalUserId, userHash)so you can target users by their own ID in your database. - Send or schedule from the dashboard composer or via
POST /v1/push/messages(or/v1/developer/push/messages).
Test devices
Mark any subscriber as a test device in the dashboard (or via
PATCH /v1/push/subscribers/:id). Clicking Send test in the composer sends immediately to your test devices without counting against your monthly pushSendsPerMonth quota.Identity verification (HMAC)
By default, linking a device to an externalUserId requires an HMAC-SHA256 signature computed on your backend with your app's secret key. This prevents a client from impersonating another user ID.
import { createHmac } from "crypto";
export function signPushUser(appSecret: string, externalUserId: string): string {
return createHmac("sha256", appSecret).update(externalUserId).digest("hex");
}Platform guides
- Web Push — Chrome, Safari, Firefox, and Edge via the 1-line service worker and embed script.
- Android — Kotlin/Java SDK over Firebase Cloud Messaging (FCM HTTP v1).
- iOS — Swift Package Manager SDK +
MsgeraPushExtensionfor rich image attachments. - Huawei — Native HMS Push Kit SDK for Huawei devices without Google Play Services.
- Flutter — Cross-platform Dart plugin for Android and iOS.
- React Native —
@msgera/pushpackage for React Native apps. - Push API & Troubleshooting — REST endpoints, error codes, and common delivery diagnostics.