Skip to content

  • About Me
  • Activations
  • Contact me
  • FAQ
  • Home
  • People to thank
  • Privacy Policy
  • Register
  • Support

Push Notifications

April 28, 2020 by VK5AYL
Somewhere along the way, I decided to implement push notifications (aka remote notifications). These are the notifications you receive when an app is in the background or not open.  They are not the same as PnP’s in-app notifications, these only work when the app is in the foreground.

I approached Allen VK3ARH to see if he was happy to handle the pushes from his website when new Spots came in.  After much experimentation, we finally got it to work and the beta testers got to experience something new.  Out of the blue and when they least expected it (possibly in a meeting at work), their phones came alive with the sound of goats and kookaburras.  I like that element of surprise!!  I’m sure their colleagues would have laughed about it too.  Someone commented the other day when I was in the city that they heard a kookaburra (unusual for the city), I said no that’s my app.  It’s a good talking point.

To explain how Push Notifications work in PnP.  Basically, my app gets a rather long token when it registers with Apple from the app, then it is sent to ParksnPeaks.org. The token is changed by Apple periodically.  Once a new Spot comes into the server, Allen has written a routine which automatically sends the new Spot detail through to the Apple Push Notification Service (APNS) which then sends the notification to the devices registered for PnP.  All good, worked beautifully.

However, since I renewed my Developer licence with Apple, it stopped working on my own devices.  The beta testers were still okay because they had an older beta version of the app.  I’ve spent hours working through the issues including asking for help from Apple and as at the time of writing (July 9th), I still haven’t solved it.  Apple’s documentation is really good but you can end up miles away from where you started once you start ploughing through it.  Its not rocket science but it is hard to figure out where the problem lies, it’s like a blocked pipe with few inspection points.  The app may end up on the App Store without the push notifications but I won’t give up.

Update July 11th 2019

I gave the beta testers a new version because their old version was about to expire and they wouldn’t have access to the app after expiration.  As soon as I downloaded the new beta version to my iPhone , push notifications came in thick and fast.  Works a treat!

                     Push Notification                                     Apple Watch Notification

Post navigation

Previous Post:

In-app Notifications

Next Post:

ParksnPeaks v2 with Logging is on the App Store

User guides

What’s new in v3 New
Cheat Sheet v3 New

Comprehensive User Guide v2.4
Quick User Guide v2

Version 2 Blog

  • ParksnPeaks v2 with Logging is on the App Store
  • Push Notifications
  • In-app Notifications
  • Swiping Spots & Alerts
  • Mapping Sites
  • Finding Sites
  • Exporting Logs
  • The QSO Log
  • Version 2 Design
  • Apple Swift & Xcode for those who care!
  • ParksnPeaks v2

Recent Posts

  • ParksnPeaks v2 with Logging is on the App Store
  • Push Notifications
  • In-app Notifications
  • Swiping Spots & Alerts
  • Mapping Sites

Version 1 Blog

  • Archives
  • Latest Posts
  • Version 1
  • Version 2
© 2024 | WordPress Theme by Superbthemes