# The New Notification Stack for Developers - Mike Miller

Published: 2023-03-01
Duration: 857s
Audio: https://pdst.fm/e/pscrb.fm/rss/p/audio4.redcircle.com/episodes/344762ad-057e-481d-94e1-506485ee77e7/stream.mp3

## Key Takeaways
- The Hidden Push Pipeline: A basic push means getting a device token, storing it in your database, retrieving it to send a message, then making the notification actionable in the app. Miller says the sending step usually doesn't go well.
- Stale Answers, Bad Prompts: Push has changed on iOS and Android, so many answers found by Googling are old. Miller suspects copied snippets are why some apps ask for push permission before users have even tried them.
- Silent Payload Failures: Data sent to a push token must be structured precisely. A message can appear to send successfully yet never arrive, and the problem can be very difficult or impossible to debug.
- One Engineer Can Start: Courier's SDK syncs push tokens automatically and can send test pushes without a backend. A single mobile engineer can prove it out, then hand the send request to the backend team.
- Days Down to Hours: Miller estimates the integration takes around 50 lines of code or fewer and a couple of hours, replacing many days of digging through potentially outdated Apple and Google documentation.

**Push notifications for mobile apps: Mike Miller of Courier on getting the happy path right and avoiding the common pitfalls.**

———

Welcome back listeners, today we are kicking off another special series of the Code Story podcast, entitled The New Notification Stack for Developers, brought to you by our long time friends and sponsors of the Code Story podcast, Courier. As a reminder, Courier is developer infrastructure for product notifications, making it easier to deliver the notification experience that your customers expect. Check out their product to learn more at Courier.com

Guest: Mike Miller, Lead Mobile SDK Engineer at [Courier](https://courier.com/codestory)

Links

- Website: https://courier.com/codestory
- LinkedIn: https://www.linkedin.com/in/killamikemilla/

  

Timestamps

00:00 – Intro

01:48 – Push Notification Happy Path

03:43 – Common Push Notification Pitfalls

06:41 – Courier's Mobile SDK Solution

08:44 – Mobile Team Collaboration

10:05 – Integrating the Courier SDK

11:00 – Code and Time Saved

12:26 – Building for Fellow Developers

Times are from the episode recording; ad breaks in your player may shift them a bit later.

  

Read the key answers from this episode, with quotes and timestamps from Mike Miller from Courier: [https://www.codestory.co/episodes/the-new-notification-stack-for-developers-mike-miller/](https://www.codestory.co/episodes/the-new-notification-stack-for-developers-mike-miller/)

  
  

Current Sponsors:

- [Tiger Data](https://tigerdata.com/)

- [Protected Harbor](http://protectedharbor.com/codestory)

- [Render](https://render.com/)

- [Fitnexa](https://www.fitnexa.com/)

- [Perplexity](https://pplx.ai/codestory)

- [Entelligence](https://entelligence.ai/)

Checkout our [Substack](https://news.codestory.co/subscribe)

Checkout our [Stacklist!](https://stacks.codestory.co/)

Checkout our [Patreon!](https://www.patreon.com/cw/codestory)

Hosted by  [Noah Labhart.](https://noahlabhart.com/)

  
  
Our Sponsors:  
* Check out Granola and use my code granola.ai/CODESTORY for a great deal: https://granola.ai  
* Check out Perplexity: https://pplx.ai/codestory  
  
  
Advertising Inquiries: [https://redcircle.com/brands](https://redcircle.com/brands)  
  
Privacy & Opt-Out: [https://redcircle.com/privacy](https://redcircle.com/privacy)

## Chapters
- 0:00 — Intro
- 1:48 — Push Notification Happy Path
- 3:43 — Common Push Notification Pitfalls
- 6:41 — Courier's Mobile SDK Solution
- 8:44 — Mobile Team Collaboration
- 10:05 — Integrating the Courier SDK
- 11:00 — Code and Time Saved
- 12:26 — Building for Fellow Developers

## Frequently Asked Questions
- **Q:** What are common mistakes when adding push notifications to a mobile app? — **A:** Mike Miller points to asking for permission at an awkward moment, such as the first time an app opens, and to badly structured message data. On the latter, he warned, "You can send the message and have the message go through successfully, but you won't receive it." [05:52]
- **Q:** How does Courier's mobile SDK handle push notification tokens? — **A:** Mike Miller explains that the SDK syncs tokens to Courier automatically, so developers don't have to worry about whether a token is valid. In his words, "you don't have to manually sync push notification tokens." [07:27]
- **Q:** Can you test push notifications without setting up a backend? — **A:** Yes, according to Mike Miller, with no backend work or raw HTTP calls needed. He described a function in the SDK "that allows you to send a test message out to yourself." [08:25]
- **Q:** How much code and time does Courier's mobile SDK save? — **A:** Mike Miller says developers can get up and running within a couple of hours and save code on both the mobile app and the backend. He estimates the integration at "less than 50 lines of code or around there and saving many, many days." [12:14]
- **Q:** Which platforms does Courier's mobile SDK support? — **A:** Mike Miller says the SDKs support both Apple Push Notification Service and Firebase Cloud Messaging, with documentation at docs.courier.com. On the options available, he said "there are four SDKs. We have an iOS, Android, React Native, and Flutter SDK." [10:19]
