0

I have to integrate APNS in my app. But, its data is not just textual and sent from the server. I have to interpret the data sent in the payload and display it according to the design being given to me. It includes an image too (screenshot attached). Do I have to create an APNS extention for this or it can be handled by some other means? I am using UserNotifications.h and its delegates (willPresentNotification, didReceiveNotificationResponse). It does not have any user interactions like button clicks etc, just clicking on the notification anywhere would navigate the user inside the app. Please help.

enter image description here

Ghazalah
  • 233
  • 2
  • 14

1 Answers1

0

For getting Image with notification you can follow This for Swift or This for ObjC .

For Custom UI. You need to add "Notification Content Extension" into your app, there you will get a Storyboard which you can customise according to your design or needs. For customisation you can use this tutorial.

manishsharma93
  • 1,039
  • 1
  • 11
  • 26