未启动应用程序时如何调试推送通知? [英] How to debug push notification while app is not launched?

查看:68
本文介绍了未启动应用程序时如何调试推送通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的应用程序未启动时处理 didFinishLaunchingWithOptions: 方法中的远程推送通知(我在启动后杀死了它们),我该如何调试这种情况?

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?

推荐答案

你可以这样实现:

在您项目的目标中选择编辑方案,然后更改此设置:

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

自动更改为等待可执行文件启动.

保持设备连接并运行应用程序.它会在您发送通知时进行调试.

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

这篇关于未启动应用程序时如何调试推送通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆