应用程序的生命周期 - 当应用程序终止并且推送工具包有效负载到来时 [英] Life cycle of app - when app is in terminated and push kit payload comes

查看:19
本文介绍了应用程序的生命周期 - 当应用程序终止并且推送工具包有效负载到来时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

应用程序的生命周期是什么?当应用程序处于终止状态并且推送工具包有效负载到来时.

What would be life cycle of app? when app is in terminated state and push kit payload comes.

首先,Pushkit 委托方法将起作用,或者 AppDelegate 方法将起作用.

First of all Pushkit delegate methods will work or AppDelegate methods will work.

有人可以描述在这种情况下调用方法的顺序吗?

Can someone describe sequence of methods getting called in such scenario?

感谢您的回答.

提前致谢.

推荐答案

应用的生命周期 - 当应用终止并且推送套件有效负载到来时

  • 当您收到推送负载时,应用程序会在终止状态下激活 20-30 秒,然后调用以下方法.

  • When you receive a push payload then application became active for 20-30 second in terminate state then call following method.

didFinishLaunchingWithOptions(这里执行一些初始化操作,初始化窗口和根视图控制器并执行其他代码.)

didFinishLaunchingWithOptions(Here perform some intilization operation intiliaze window and rootviewcontroller and execute other code.)

didReceiveIncomingPushWithPayload

在这 20-30 秒应用程序变为活动状态,您还可以在 didReceiveIncomingPushWithPayload

In this 20-30 second application became active and also you can get a active state of application in the didReceiveIncomingPushWithPayload

这篇关于应用程序的生命周期 - 当应用程序终止并且推送工具包有效负载到来时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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