Recall & Review
beginner
What is the purpose of permissions in a mobile app?
Permissions let the app ask for access to sensitive device features like camera, location, or contacts. This protects user privacy and device security.Click to reveal answer
beginner
How do you request a permission in React Native?
You use the PermissionsAndroid API on Android or the react-native-permissions library for both platforms to ask the user to allow access.
Click to reveal answer
intermediate
What should you do if a user denies a permission request?
You should explain why the permission is needed and offer a way to try again or open app settings to enable it manually.
Click to reveal answer
intermediate
Why is it important to check permission status before accessing a feature?
Checking permission status prevents app crashes and improves user experience by handling denied or restricted permissions gracefully.
Click to reveal answer
beginner
Name a popular React Native library to handle permissions on both iOS and Android.
react-native-permissions is a popular library that simplifies checking and requesting permissions across platforms.
Click to reveal answer
Which React Native API is used to request permissions on Android?
✗ Incorrect
PermissionsAndroid is the built-in API to request permissions on Android in React Native.
What should you do before accessing the camera in your app?
✗ Incorrect
You must request camera permission to respect user privacy and avoid app crashes.
If a user denies a permission, what is a good practice?
✗ Incorrect
Explaining the need and offering retry improves user trust and app usability.
Which library helps manage permissions on both iOS and Android in React Native?
✗ Incorrect
react-native-permissions simplifies permission handling across platforms.
Why is checking permission status important before feature use?
✗ Incorrect
Checking permission status prevents errors and improves user experience.
Describe the steps to request and handle a permission in a React Native app.
Think about how you ask the user and what you do based on their answer.
You got /4 concepts.
Explain why respecting user permissions is important in mobile apps.
Consider what happens if you ignore permissions.
You got /4 concepts.