How to get breakpoint into NotificationServiceExtension?

137 views Asked by At

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.

1

There are 1 answers

1
marshallino16 On

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.