Skip to content

Support Background Execution #16493

@vishnevskiy

Description

@vishnevskiy

This is more of a question if anything. Currently since the event loop is tied to CADisplayLink on iOS it does not tick when the app is in the background/screen is off. We have been using React Native for Discord since the day React Native was announced, but we have kept a fork that replaces CADisplayLink with NSTimers when the app goes to the background (discord@62a487a). We are trying to move away from having a fork, but this is holding us back. Is there any plan to fix this in a better way, or would a patch to this be considered?

Environment

iOS

Steps to Reproduce

Have an app that needs to stay alive in the background such as VoIP.

Expected Behavior

Event loop should tick when app is in background, if app opts into it.

Actual Behavior

Timers and event dispatches do not work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions