We added silent notifications which require PushKit and enabling VoIP in the Info.plist
See Apple's PushKit Doc
Now my app is rejected by Apple:
Your app declares support for VoIP in the UIBackgroundModes key in your Info.plist, but does not include any Voice over IP services. Please revise your app to either add VoIP features or remove the "voip" setting from the UIBackgroundModes key.
UIBackgroundModes
causes the silent notifications to stop working. Anyone know what I should do?
What VoIP feature can I add (even if I dont use it, just to pass the review)?
I asked Apple but they got back with an auto generated response with the same rejection reason.
Yes. It will. When you click on that. Yeah its ok but being push notification is silent,you are not able to view any alert and cant click.
There are two ways users can receive silent push notifications on Android. Users can long press on a notification to get an option to display notifications silently. Users can also enable silent notifications by heading to Settings > App & Notifications > Search for app and choose> Notifications, and turn it off.
Overview. The PushKit framework supports specialized notifications for updating your watchOS complications, responding to file provider changes, and receiving incoming Voice-over-IP (VoIP) calls. PushKit notifications differ from the ones you handle with the User Notifications framework.
You should likely be using iOS Service Extensions to decrypt the message. https://developer.apple.com/reference/usernotifications/unnotificationserviceextension
You use this extension to modify the notification’s content or download content related to the extension. For example, you could use the extension to decrypt an encrypted data block or to download images associated with the notification.
You can also learn more about how this works at this WWDC talk. https://developer.apple.com/videos/play/wwdc2016/707/
Implementing VoIP features to do this is complete overkill.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With