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 when the unread count changes on the server, you can send a badge-only APNs notification containing the new absolute value in aps.badge. It updates the app icon without displaying another alert. And now that I’m thinking about that - I need to verify that’s working correctly.