Recall & Review
beginner
What is the purpose of permissions in a mobile app?
Permissions allow an app to access sensitive device features like camera, location, or storage, ensuring user privacy and security.
Click to reveal answer
beginner
Which Flutter package is commonly used to request and check permissions?
The
permission_handler package is widely used in Flutter to manage permissions easily.Click to reveal answer
intermediate
How do you check if a permission is granted in Flutter using
permission_handler?Use
Permission.camera.status to get the current status, then check if it equals PermissionStatus.granted.Click to reveal answer
intermediate
What should you do if a permission is denied by the user?
You can show a friendly message explaining why the permission is needed and optionally guide the user to app settings to enable it.
Click to reveal answer
beginner
Why is it important to request permissions at runtime rather than only in the app manifest?
Requesting at runtime lets users decide when to allow access, improving trust and complying with platform rules for privacy.
Click to reveal answer
Which Flutter package helps manage permissions easily?
✗ Incorrect
The permission_handler package is designed specifically for requesting and checking permissions.
What does
Permission.camera.status return?✗ Incorrect
It returns the current status like granted, denied, or restricted for the camera permission.
If a user denies a permission, what is a good practice?
✗ Incorrect
Explaining why permission is needed helps users understand and may encourage them to allow it.
Where should you declare permissions for Android in Flutter?
✗ Incorrect
AndroidManifest.xml is where Android permissions are declared.
Why request permissions at runtime instead of only in the manifest?
✗ Incorrect
Runtime requests let users decide when to allow access, enhancing privacy and trust.
Explain how to check and request a permission in Flutter using the permission_handler package.
Think about using Permission.camera.status and Permission.camera.request()
You got /3 concepts.
Describe why it is important to handle permission denial gracefully in a mobile app.
Consider how users feel when asked for permissions and what happens if they say no.
You got /4 concepts.