Keep Awake

github : https://github.com/capacitor-community/keep-awake

npm install @capacitor-community/keep-awake
npx cap sync
import { KeepAwake } from '@capacitor-community/keep-awake';

const keepAwake = async () => {
  await KeepAwake.keepAwake();
};

const allowSleep = async () => {
  await KeepAwake.allowSleep();
};

Table of contents 목차

평점을 남겨주세요
평점 : 2.5
총 투표수 : 1