Michael Yang
Michael Yang

Reputation: 1433

How to debug push notification while app is not launched?

I want to deal with a remote push notification in didFinishLaunchingWithOptions: method while my app was not launched(i killed them after launched),how can i debug this situation?

Upvotes: 3

Views: 1715

Answers (1)

SNarula
SNarula

Reputation: 558

You can acheive this in this way:

In your Project's target select Edit Scheme and then change this setting:

Change Automatically to wait for executable to be launched.

Keep your device connected and run the app. It will debug when you will send notification.

enter image description here

Upvotes: 13

Related Questions