Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apple rejection after implementing silent notifications with PushKit

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.

  1. The app is NOT a VoIP therefore it doesn't require VoIP features.
  2. Removing the VoIP from 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.

like image 363
Tinkerbell Avatar asked Sep 21 '16 20:09

Tinkerbell


People also ask

Will iOS awake my app when I receive silent push notification?

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.

How do I turn on silent APN notifications?

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.

What is PushKit?

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.


Video Answer


1 Answers

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.

like image 106
PushyP Avatar answered Oct 07 '22 00:10

PushyP