美文网首页
App 生命周期测试

App 生命周期测试

作者: 穷小子 | 来源:发表于2020-12-14 16:49 被阅读0次

    基于iOS14.1测试

    手机屏幕底部向上轻扫App至桌面,点击App图标返回
    2020-12-14 12:23:15.849843+0800 UIApplicationWillResignActiveNotification
    2020-12-14 12:23:16.745676+0800 UIApplicationDidEnterBackgroundNotification
    2020-12-14 12:23:39.561826+0800 UIApplicationWillEnterForegroundNotification
    2020-12-14 12:23:39.873687+0800 UIApplicationDidBecomeActiveNotification

    手机屏幕底部向上轻扫至App切换器,滑动切换器,点击App切换页返回
    2020-12-14 12:27:12.543905+0800 UIApplicationWillResignActiveNotification
    2020-12-14 12:27:16.562130+0800 UIApplicationDidBecomeActiveNotification

    手机屏幕顶部向下轻扫唤起通知页面,后收起通知页面
    2020-12-14 12:29:03.761577+0800 UIApplicationWillResignActiveNotification
    2020-12-14 12:29:04.344993+0800 UIApplicationDidBecomeActiveNotification
    2020-12-14 12:29:04.352345+0800 UIApplicationWillResignActiveNotification
    2020-12-14 12:29:09.365961+0800 UIApplicationDidBecomeActiveNotification

    手机屏幕顶部向下轻扫唤起控制中心页面,后收起控制中心页面
    2020-12-14 12:29:39.471406+0800 UIApplicationWillResignActiveNotification
    2020-12-14 12:29:42.610292+0800 UIApplicationDidBecomeActiveNotification

    App 运行期间收到电话,保持来电悬浮窗,接听电话
    无生命周期相关事件

    App 运行期间收到短信,通过3D Touch查看短信,未跳转短信App,后收起短信查看浮窗
    2020-12-14 12:29:39.471406+0800 UIApplicationWillResignActiveNotification
    2020-12-14 12:29:42.610292+0800 UIApplicationDidBecomeActiveNotification

    相关文章

      网友评论

          本文标题:App 生命周期测试

          本文链接:https://www.haomeiwen.com/subject/xnovgktx.html