问题
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?
回答1:
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.
来源:https://stackoverflow.com/questions/45855246/how-to-debug-push-notification-while-app-is-not-launched