Thoughts about tech, programming, and more.

Working with Hotwire Native #4

iOS Push Notifications
This went relatively smooth. I fought a bit with the .p8 file for the token and setting up the configuration for the connection, but that was likely because I it was 5:30am and I had stayed up all night working through the Hotwire Tab issues.

Taking a couple extra minutes and reading through the apnotic gem docs was all I really needed to do.

Claude Code was surprisingly helpful on the iOS side for setting up a PushNotificationManager which handles requesting notification permission and registering the device token.

There's also a number of steps in your Apple Developer account you have to set up.

In all I think it took me 2-3 hours to get the iOS push notifications up and running.

I also later learned that in order to update badge counts after a user reads a notification, you need to send another "silent" notification with the new badge count. And now that I'm thinking about that - I need to verify that's working correctly.

Subscribe to Daniel Lemky

Sign up now to get access to the library of members-only issues.
Jamie Larson
Subscribe