-
-
Notifications
You must be signed in to change notification settings - Fork 894
[Feature request]: Implement full screen intent android permission request #1338
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
Comments
Hello @dnkoulouris, I could be mistaken, however I think the I cannot find any documentation that this is a special permission and needs separate requesting and approval from the user. The Android documentation clearly mentions this is a "normal" permission. Please let me know if you have any other sources that contradict me believes. |
Hi @mvanbeusekom, the problem is that in order for the app to be accepted at play store, the permission must be requested manually by the user. This is a new limitation of the Android 14. The other solution is to use platform channels and implement native code. |
Can you provide additional documentation on how to do so? I cannot find it in the two links you have send. |
https://source.android.com/docs/core/permissions/fsi-limits This is exactly the use case that I am facing. |
Google play store is asking developers to ask permission manually on android 14 USE_FULL_SCREEN_INTENT |
The requirement seems to me to be that ONLY if your app uses alarm clock or calling features, your app can be exempted from needing to manually request the permission from the user and can still be granted the permission automatically on app install - this is specified in a new App Content section in Google Developer Console. However, if your app isn't an alarm clock or calling app, you must request the permission from users for it to be granted. The app will crash if permission is not requested and granted before its use. The stated timeframe is May 31st 2024 for when this requirement change went into effect. The Learn more link goes to https://support.google.com/googleplay/android-developer/answer/14016515?hl=en which explains the requirements in more specific details. |
I have been looking deeper into the documentation and it seems like Android will handle requesting the permission automatically if the `` key is part of the AndroidManifest.xml (from Android documentation):
The only thing developers need to do is have some logic to ensure the permission is granted or not before executing the FSI intent. This seems something more suitable for plugins that actually execute full screen intents to build in and not something for the permission_handler to manage. Especially since there is no option to explicitly request the permission, which would result into strange behavior and unexpected results in the current API. For now I will go ahead and close this issue. Please let me know if my assumptions regarding Android automatically requesting the permission are incorrect (including documentation) and I will be happy to reconsider. |
https://source.android.com/docs/core/permissions/fsi-limits Documentation in above link clearly mention the following:
This mean when installing apps that do not have calling or alarm functionalities, Google Play Store will revoke the full-screen intent permission. So, I think you need to look into this. |
@cshong87 is right. This is an extremely confusing topic, because it's poorly documented and most explanations are ambiguous and/or contradicting - both by Google and most stackoverflow posts. I just wasted the whole day on this stupid shit Google! This is how it works by my research:
That sucks big time - because it's not only very confusing, but also makes it hard to test in debug during development - because as I've said, each and every app gets this permission automatically granted immediately after install - and since you usually test just a debug release, Google Play app is not performing the check of declaration form for Now what you need to do:
|
Why was this closed? I cannot currently release my android app due to the new special permissions around USE_FULL_SCREEN_INTENT. I cannot remove this intent as my app has audio/video calling and crashes if I remove it. I can request the permission easily but currently have no way to check if it is already granted. This results in prompting the settings screen every time the app runs. |
Is there already an issue requesting this feature?
Please select affected platform(s)
Use case
For apps that contain Videocalls or Alarms and target Android 14 and above, request for USE_FULL_SCREEN_INTENT permission is mandatory.
https://developer.android.com/reference/android/Manifest.permission#USE_FULL_SCREEN_INTENT
https://developer.android.com/training/permissions/requesting-special
Proposal
Add
Permission.useFullScreenIntent
Specific requirements or considerations
No response
Additional information or context
No response
The text was updated successfully, but these errors were encountered: