Use wake locks

When it's necessary, you can use wake locks to keep the device from going to sleep.

Under some circumstances, you may need to keep the device awake even when your app is in the background. To do this, you can create a wake lock.

Your feedback is a crucial part of improving our documentation. Please give us your feedback using the following link:

Give feedback

This guide explains the following areas:

This guide assumes you're familiar with the following topics: