-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
android.permission.WAKE_LOCK #373
Comments
I think that is related to how Flutter manages native views through native Java API. I don't use However, it seems that other plugins have this issue, such as the official Probably there is something wrong inside the Flutter Java native API. For now, the only possible way is to add in your <uses-permission android:name="android.permission.WAKE_LOCK"/> as you did. |
@pichillilorenzo do you think it's a good idea to have the wake_lock permission in the manifest lying there? Does it have any bad implications? |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue. |
Flutter version: 1.17.2
Plugin version: 3.3.0
Android version: Android 10
Sometimes Flutter reports an exception:
java.lang.SecurityException: Neither user 10133 nor current process has android.permission.WAKE_LOCK
after created a InAppWebView, and after that InAppWebView not work at all.After I add
<uses-permission android:name="android.permission.WAKE_LOCK"/>
into the AndroidManifest, the problem solved.I've test it with 4 different Android 10 devices and it's all the same. But another Android 8 don't have this problem.
Log is added below:
The text was updated successfully, but these errors were encountered: