1

Is it possible to get debug point into NotificationServiceExtension when app is into killed mode.

actually what i suppose to achieved is that saved remote notification data into database but in some random cases data not saved into database.

Help will be appreciated.

Bucket
  • 449
  • 3
  • 20

1 Answers1

1

Yes you can, this worked for me.

  • Set your breakpoint in the extension
  • Select Debug / Attach to Process by PID or name
  • Enter the name of the extension target
  • Trigger the push notification

Also make, sure you have set "mutable-content" : 1 in your notification payload.

marshallino16
  • 2,645
  • 15
  • 29
  • thanks for your replay, it is working now, actually problem was before executing NotificationExtension delegate my application remote notification delegate take places. so i just comment that line for some moment. and worked for me. – Bucket Jan 03 '18 at 08:26