You can modify this slightly to handle iOS 18
https://stackoverflow.com/questions/76864560/is-there-a-way-to-provide-ios-version-check-inside-widget-extension/77082330#77082330
Did you figure out how to send the notification? I am a bit confused about the documentation. it does not say what to do with the token, how to encode it or send it to the push server.
You can modify this slightly to handle iOS 18
https://stackoverflow.com/questions/76864560/is-there-a-way-to-provide-ios-version-check-inside-widget-extension/77082330#77082330
Did you figure out how to send the notification? I am a bit confused about the documentation. it does not say what to do with the token, how to encode it or send it to the push server.