Closed Ghousepasha-ios closed 2 months ago
Hey there!
I believe this method is what you are looking for: ApplePush.AddCustomProperty(string key, object value, bool addToApsDict = false)
. You can use it like so:
ApplePush push = new ApplePush(ApplePushType.Alert)
.AddCustomProperty("customPropertyKey", new { value1 = "123", value2 = 456 }, addToApsDict: true);
@alexalok Yes, I found it here https://github.com/alexalok/dotAPNS?tab=readme-ov-file#or-to-the-aps-section.
Thank you
Hello
I would like to set a custom aps object like below.
{ 'aps': { 'event': 'update', 'content-state': { 'payload': { 'aliasName': 'Location House', 'AccountNumber': '(123445566)', 'status': 2, 'statusText': 'Completed', 'title': 'ticket status' } }, 'timestamp': 1723119300 } }