2

enter image description here

I received push notification from an x app with image at right bottom (circled)

Need to show same sort of image in my app. What is apns payload structure for this. Can anybody help me. Thanks in advance.

Simon Fernandes
  • 235
  • 1
  • 3
  • 14
  • Possible duplicate of [how to display image in ios push notification?](https://stackoverflow.com/questions/37839171/how-to-display-image-in-ios-push-notification) – nathan Apr 12 '18 at 01:26

1 Answers1

-3

For Remote Notification, set mutable-content : 1 and category : newCategory. Note that the category value is set to "newCategory" which matches what you previously added to UNUserNotificationCenter and UNNotificationContentExtensions plist.

Example:

{
    "aps" : {
        "alert" : {
        "title" : "title",
        "body" : "Your message Here"
        },
        "mutable-content" : "1",
        "category" : "newCategory"
    },
    "otherCustomURL" : "http://www.xxx.jpg"
 }

For more info: https://stackoverflow.com/a/38066583/742298

nathan
  • 9,329
  • 4
  • 37
  • 51
Ashutosh Dave
  • 382
  • 16
  • 33