-
-
Notifications
You must be signed in to change notification settings - Fork 10
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 shows permission on intial load #48
Comments
@Ahmedhamed77 hello In Android 13 and earlier, to detect a capture event, it detects that a capture image file is created. In our example app, we require this permission to use the |
@wn-na thank you for your response so maybe we could have a workaround for Android 13 and earlier, just ask permission on the screen where we know that screenshots will be taken, there are some ways to detect screenshots so we could only ask permission in that case ? is that possible? I was also playing with the code to check the permission problem
and if we delete |
@Ahmedhamed77 hello I think it would be a good idea to ask for permission when calling prevent. Even if you don't have that permission, you can still prevent screenshots, you just won't be able to detect the event that the screenshot was taken, so I don't think it's necessary to ask for the permission. I'll give it some more thought and see how i can improve it. |
@Ahmedhamed77 hello
When running If you have any better ideas, please let me know! |
@wn-na I think this is the best approach, I will be waiting |
@Ahmedhamed77 hi |
@wn-na |
@Ahmedhamed77 When asking for media permissions in a text-only app, it can feel like spam, but before Android 14, there was no way to detect screenshots other than that method, so it's unavoidable. i'm sure with a little more thought, i can come up with a good way to do it, but it's hard right now. |
thank you for the package
but in the latest build, I found that the package on Android asks for permissions once the app loads
in a real-world app we can't do that we can't ask users to permit photos and videos without telling them what exactly they are going to permit.
as you can see here once the app opens the permission just pop up and asks the user to give permission
is there a workaround for that?
Thank you
The text was updated successfully, but these errors were encountered: