• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

AIR 29.0.0.96 // executeInBackground = false doesn't work

Participant ,
Feb 10, 2018 Feb 10, 2018

Copy link to clipboard

Copied

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.

TOPICS
Air beta

Views

411

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines