Reputation: 75
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?
Upvotes: 1
Views: 360
Reputation: 73057
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.
Upvotes: 2