惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
罗磊的独立博客
博客园 - 【当耐特】
M
MIT News - Artificial intelligence
月光博客
月光博客
博客园_首页
博客园 - 叶小钗
T
Tailwind CSS Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
I
InfoQ
量子位
小众软件
小众软件
爱范儿
爱范儿
The GitHub Blog
The GitHub Blog
IT之家
IT之家
Jina AI
Jina AI
阮一峰的网络日志
阮一峰的网络日志
G
Google Developers Blog
WordPress大学
WordPress大学
人人都是产品经理
人人都是产品经理
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
J
Java Code Geeks
云风的 BLOG
云风的 BLOG
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
📲 Why Your iOS Push Notifications Just Died: APNs Certifi...
George Ikweg · 2026-05-05 · via DEV Community
Cover image for 📲 Why Your iOS Push Notifications Just Died: APNs Certificates vs. Keys

George Ikwegbu Chinedu

Cover image source: RDNE Stock project by RDNE

If you've been building Flutter apps for a while, you know the sinking feeling of a QA report saying: "Push notifications stopped working on iOS." You check the code, and nothing has changed. You check Android, and it works perfectly.

Then you log into Firebase and see it: The dreaded red box. Your APNs certificates have expired.

In this article, we'll dive into the fundamental difference between APNs Certificates and Auth Keys, and why as a seasoned developer, you should almost always choose the latter.


The Contenders: .p12 vs. .p8

For years, developers relied on APNs Certificates (.p12 files). While they work, they come with a high maintenance cost. Recently, Apple introduced APNs Authentication Keys (.p8 files), which have quickly become the industry standard.

1. APNs Certificates (.p12)

  • Expiration: They expire every 12 months. If you forget to renew them, your production notifications stop instantly.
  • Scope: Each certificate is tied to a single App ID. If you have 5 apps, you manage 5 certificates.
  • Environment: You often need separate certificates for Development (Sandbox) and Production.

2. APNs Authentication Keys (.p8) — Recommended

  • Expiration: They never expire. Set it once, and forget it forever.
  • Scope: One key works for all your apps under a single Apple Developer account.
  • Environment: The same key handles both Sandbox and Production environments seamlessly.

Step-by-Step: How to Get Your APNs Credentials

Option A: The Modern Way (APNs Auth Key)

This is the "Pro" move to ensure your notifications never die again.

  1. Apple Developer Portal: Log in and head to Certificates, Identifiers & Profiles.
  2. Create Key: Click Keys on the left sidebar, then hit the (+) button.
  3. Configure: Give it a name (e.g., "Firebase_Global_Key") and check the box for Apple Push Notifications service (APNs).
  4. Register & Download: Click Continue, then Register. Download the .p8 file.
    • Warning: You can only download this file **ONCE. Store it securely!
  5. Firebase Setup: Go to Project Settings > Cloud Messaging. Under your iOS app, upload the .p8 file. You’ll need your Key ID (found on the download page) and your Team ID (found in your Apple account membership details).

Option B: The Old Way (APNs Certificate)

Use this only if your specific infrastructure requires it.

  1. Apple Developer Portal: Go to Certificates and click (+).
  2. Select Type: Choose Apple Push Notification service SSL (Sandbox & Production).
  3. Choose App ID: Select the specific Bundle ID for your app.
  4. CSR Request: You’ll need to upload a Certificate Signing Request (CSR) generated from your Mac's Keychain Access app.
  5. Download & Export: Once generated, download the .cer file. Double-click to add it to your Keychain, then right-click and Export it as a .p12 file.
  6. Firebase Setup: Upload this .p12 file to Firebase under Cloud Messaging.

The Expert Verdict

Stop using .p12 certificates. The overhead of annual renewals and multi-app management is a productivity killer. Switch to a .p8 Auth Key today to safeguard your app's communication and keep your QA team happy.

Happy Fluttering! 🚀