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

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

XMLWordPrintable

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

      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!

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

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

              Created:
              Updated:

                There are no open Gerrit changes