0
0
Fluttermobile~5 mins

Notifications (local) in Flutter - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a local notification in mobile apps?
A local notification is a message sent by the app itself to the user’s device without needing a server. It appears as an alert, sound, or badge to notify the user about something important.
Click to reveal answer
beginner
Which Flutter package is commonly used to show local notifications?
The flutter_local_notifications package is commonly used to create and display local notifications in Flutter apps.
Click to reveal answer
intermediate
What permission is usually required to show notifications on Android and iOS?
On Android 13 (API 33) and above, the POST_NOTIFICATIONS permission is required. On iOS, the app must request user permission to show notifications.
Click to reveal answer
intermediate
How do you schedule a notification to appear later in Flutter?
You use the flutter_local_notifications plugin’s schedule method, specifying the time when the notification should appear.
Click to reveal answer
intermediate
Why is it important to handle notification taps in your app?
Handling notification taps lets your app respond when the user clicks the notification, such as opening a specific screen or performing an action, improving user experience.
Click to reveal answer
Which Flutter package helps you show local notifications?
Aflutter_local_notifications
Bhttp
Cprovider
Dshared_preferences
What must an iOS app do before showing notifications?
AEnable background fetch
BNothing, notifications work automatically
CRequest user permission
DRegister with Google Play
What is a local notification?
AA notification that requires internet
BA message sent from a remote server
CA notification that only appears inside the app
DA message sent from the app itself to the device
How do you make a notification appear at a specific time in Flutter?
AUse the schedule method of flutter_local_notifications
BUse a Timer widget
CUse the Navigator to push a screen
DUse the setState method
Why handle notification taps in your app?
ATo disable notifications
BTo open a specific screen or perform an action
CTo change the app icon
DTo update the app version
Explain how to set up and show a simple local notification in Flutter.
Think about the steps from adding the package to displaying a notification.
You got /4 concepts.
    Describe the differences in notification permissions between Android and iOS.
    Consider what the user must allow on each platform.
    You got /4 concepts.