目录

How do I create a background task in the stage model?

Question

Third-party applications cannot use system APIs such as ServiceExtensionAbility to create a background task in the stage model. You are advised to use other APIs or methods.

Answer

Background tasks include transient tasks, continuous tasks, deferred tasks, and agent-powered reminders. For details about how to create a continuous task in the stage model, see How to Develop a Continuous Task.

Reference

@ohos.resourceschedule.backgroundTaskManager (Background Task Management)