Module permission

Module permission 

Source
Expand description

Permission bitflags for configuring notification permissions.

Combine them with bitwise OR (|) when requesting permissions. For example:

use ios_local_notification::permission;
notif::request_permission(permission::ALERT | permission::SOUND);

Constants§

ALERT
Display alert banners and popups.
BADGE
Show a badge on the app icon.
CARPLAY
Display notifications while connected to CarPlay.
CRITICAL_ALERT
Allow critical alerts (bypass Do Not Disturb).
PROVISIONAL
Grant provisional authorization (deliver quietly).
SOUND
Play sounds for notifications.