Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-130761

iOS App life-cycle events are not being called when using custom AppDelegate

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.8.0
    • QPA
    • iOS/tvOS/watchOS

    Description

      Since Qt 6.8.0, when using a custom AppDelegate on a iOS application, some life-cycle events are not being called.

      The ones which are called are:

      • didFinishLaunchingWithOptions{}
      • applicationWillTerminate{}

      However, the following events are not called:

      • applicationWillResignActive
      • applicationDidEnterBackground
      • applicationWillEnterForeground
      • applicationDidBecomeActive

      I have attached a simple example project that reproduces the problem.

      If you run this project on Qt 6.7.3 it works as expected. When Qt 6.8.0 is used, they are no longer called.

      Having this events callbacks being called is crucial to manage application state.

      Thank you!

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vestbo Tor Arne Vestbø
            sinosoidal Nuno Santos
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes