简体   繁体   中英

Sending Apple Silent Push Notification using Twilio

How to set it using twilio notify api SDK for c#?

According to Apple documentation in order to send Silent Push Notification I need to set 3 things:

payload: { "aps": "content-available": 1 } }
apns-push-type: background
apns-priority: 5

I am trying to achieve it using NotificationResource in which I can set payload using apn and apns-priority using priority to low, but I can't find a way to set apns-push-type .

How can I set it up?

Twilio developer evangelist here.

Good news, if you set the aps payload to

{ "aps": "content-available": 1 }

then Twilio Notify will automatically add the apns-push-type: background to the request to Apple.

I don't believe this is documented anywhere, but I am trying to get that updated.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM