Skip to main content
Oleg Korchagin
Inspiring
February 10, 2018
Question

AIR 29.0.0.96 // executeInBackground = false doesn't work

  • February 10, 2018
  • 0 replies
  • 461 views

Hi, Adobe AIR Team.

We found this issue.

Conditions:

1. Any iOS devices with iOS 11.*

2. AIR 29 Beta

3. Application perform some background activity and play sounds (some navigation alerts)

4. After some times we need to suspend app and (power saving feature when user has finished his trip):

- stop all sounds

- stop all GPS activity

- and call executeInBackground = false to suspend app

Expected result:

- application go to suspended mode

Actual result:

- application continue background work. Actually - AIR SDK continue some background work and don't stop audio session.

It can be simply check using X-Code -> Instruments -> battery profile. In section Audio CPU we see, that is ongoing some process.

Then - if open app (go to foreground) and then go to home screen (app go to background) : app go to suspended mode.

We spent a lot of time to find workaround. Unfortunately there is no workaround.

We found that:

Any sound, that was playing when app were in background mode leads to that call executeInBackground = false IN background mode don't suspend application.

You must first go to foreground, air sdk stop some sound activity and only then executeInBackground = false can work again.

This topic has been closed for replies.