alexalok / dotAPNS

dotAPNS is a library used to send push notifications to Apple devices using Apple Push Notification service via HTTP/2 API.
Apache License 2.0
114 stars 34 forks source link

Accept object as a alert #92

Closed jasonItotal closed 3 years ago

jasonItotal commented 3 years ago

When I sending voip alert, I need to send an object as following. { uuid = "982cf533-7b1b-4cf6-a6e0-004aab68c503", incoming_caller_id = "0123456789", incoming_caller_name = "Tester" } Could the library provide a method to accept object as the payload.aps.alert?

Thanks.

alexalok commented 3 years ago

The only possible values for an alert object are listed on the Apple Docs. Thus, this library does not support setting an arbitrary object as an alert.

You can however workaround this by force-adding an object using an AddCustomProperty method. Please see README for more info and examples.