Skip to content

Commit

Permalink
Merge pull request #50 from cuddlecheek/master
Browse files Browse the repository at this point in the history
specify allowSleepAgain error behaviour in README.md
  • Loading branch information
EddyVerbruggen committed Aug 14, 2018
2 parents 8d2c3b0 + edd0d6f commit f83de3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -107,6 +107,8 @@ An optional successCallback (first argument) will be triggered if the functions

An optional errorCallback (second argument) will only be triggered if something fatal happened, preventing the plugin to work as expected.

Note that calling `allowSleepAgain` without calling `keepAwake` first will trigger `errorCallback` or throw an error if not provided.

### Quirks
[In this issue](#29) it was reported that on iOS the app would fall asleep after the Camera has been used,
even if you previously called `keepAwake`. A similar [issue on Android](#30) where the photo library was accessed during app usage.
Expand Down

0 comments on commit f83de3a

Please sign in to comment.