Skip to content

Commit 5698457

Browse files
authored
readme: update note for silent push
1 parent 243fee1 commit 5698457

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,21 @@ And be aware of `apns-expiration`value, adjust according to your call logics
5555

5656
https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns
5757

58+
#### About Silent Push ( Background Push ):
59+
60+
VoIP pushes were intended to specifically support incoming call notifications and nothing else.
61+
62+
If you were using voip push to do things other than `nootify incoming call`, such as: `cancel call` / `background updates`...etc, You should change to use [Notification Service Extension](https://developer.apple.com/documentation/usernotifications/unnotificationserviceextension), it contains different kind of pushs.
63+
64+
To use`Background Push` to [Pushing Background Updates to Your App](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/pushing_background_updates_to_your_app),
65+
You should:
66+
1. Make sure you enabled `Xcode` -> `Signing & Capabilities` -> `Background Modes` -> `Remote Notifications` enabled
67+
2. When sending background push from your APN back-end, the push header / payload should set:
68+
* content-available = 1
69+
* apns-push-type = 'background'
70+
* apns-priority = 5
71+
72+
5873
## Installation
5974

6075
```bash

0 commit comments

Comments
 (0)