-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Back to User configured brightness on iOS #11
Comments
Agreed, if possible 🙂 In my case, I have an app/device that's intended to remain on 24/7 (displays info) and sit in a lounge or kitchen etc. It needs to:
On Android Would be awesome if we could revert back to the user's brightness settings on iOS! |
Is it have the setting for iOS restore the user configured brightness? |
I don't think iOS support it the same way as Android does. According to Apple's docs it will reset the brightness to the user's default when the device is locked. For now I suggest creating a service which listens to the Apps state and when the app comes back to the foreground re-fetch the current brightness and store that in a variable.
I've checked this and when the user changes the brightness of the screen manually, it will trigger the appStateChange cycle. It would be cool if this could be implemented in the plugin. |
For Android, the brightness can just be set to -1 to restore the user configured brightness. Would be cool to have the same for iOS
The text was updated successfully, but these errors were encountered: