- In our app, we notify users using Push-notifications, but if user didn't received push (e.g. user's device is offline), then we send him SMS.
Since APNs doesn't provide delivery report, we have implemented our own method of sending reports to backend server using Service Extension:
When app receives push notification, it sends an http-request to backend inside Service Extension's method -
didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void)
It is possible to make a fetch job or make http requests only within 30 seconds.
However, sometimes users complain about receiving SMS and PUSH at the same time.
When we inspect logs in DB, there are no PUSH delivery reports from those devices.
My questions are:
- Is there any chance that Service Extension fails to start?
- Any advices on how to troubleshoot such errors?