I have multiple mobile applications, one developed in React Native and the other in Objective-C and Swift hybrid technology. I use my own system to send push notifications, and these notifications are left encrypted in the Apple queues. However, in any of my applications, I am unable to catch these messages in the code block where I decrypt them. As a result, users see the messages encrypted. While I can deterministically detect this issue on devices experiencing the offload feature from Apple, I've also noticed sporadic occurrences of this issue on devices not utilizing offload. Due to my security policies, I have no chance of sending messages unencrypted. I'm trying to understand why this is happening and need suggestions for a solution. Is there anyone who can help?
Additional Information:
- I use my own system for push notifications.
- Messages are left encrypted in the Apple queues.
- I am unable to catch the messages in the code block where I decrypt them in one of the applications.
- I can deterministically detect the issue on devices experiencing the offload feature.
- I've noticed sporadic occurrences of this issue on devices not using offload.
- Due to security policies, I have no chance of sending messages unencrypted.
I tried sending without offloading, and the messages arrived unencrypted I searched for a callback handler function on the Apple side - couldn't find one. To ensure notifications were sent correctly, I performed token checks in my database.