Aidra Connect 10.0.2+16
Aidra Connect Mobile Application
Loading...
Searching...
No Matches
NotificationService Class Reference
Collaboration diagram for NotificationService:

Private Member Functions

factory NotificationService ()
NotificationService _internal ()
void updateSession (SessionEntity? session)
Future< void > init () async
Future< void > _checkPendingNotification () async
Future< void > setupAfterAuthentication (SessionEntity session) async
Future< void > _initLocalNotifications () async
Future< void > _saveDeviceToken (String token) async
Future< void > removeDeviceToken (String token) async
Future< void > _handleForegroundMessage (RemoteMessage message) async
Future< void > _showLocalNotification ({ required String title, required String body, required Map< String, dynamic > payload, }) async
void _handleNotificationTap (RemoteMessage message) async
void _onNotificationTap (NotificationResponse notificationResponse)
Map< String, dynamic > _parsePayload (String payloadString)
void _navigateBasedOnNotification (Map< String, dynamic > data)

Private Attributes

bool _hasPendingNavigation = false
final navigatorKey = rootNavigatorKey
SessionEntity _currentSession
final FirebaseMessaging _firebaseMessaging = FirebaseMessaging.instance
final FlutterLocalNotificationsPlugin _flutterLocalNotificationsPlugin

Static Private Attributes

static final NotificationService _instance = NotificationService._internal()

Detailed Description

Definition at line 28 of file notification_service.dart.

Constructor & Destructor Documentation

◆ NotificationService()

factory NotificationService::NotificationService ( )
private
Here is the caller graph for this function:

Member Function Documentation

◆ _checkPendingNotification()

Future< void > NotificationService::_checkPendingNotification ( )
inlineprivate

Definition at line 69 of file notification_service.dart.

Here is the caller graph for this function:

◆ _handleForegroundMessage()

Future< void > NotificationService::_handleForegroundMessage ( RemoteMessage message)
inlineprivate

Definition at line 167 of file notification_service.dart.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _handleNotificationTap()

void NotificationService::_handleNotificationTap ( RemoteMessage message)
inlineprivate

Definition at line 211 of file notification_service.dart.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _initLocalNotifications()

Future< void > NotificationService::_initLocalNotifications ( )
inlineprivate

Definition at line 113 of file notification_service.dart.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _internal()

NotificationService NotificationService::_internal ( )
private
Here is the call graph for this function:

◆ _navigateBasedOnNotification()

void NotificationService::_navigateBasedOnNotification ( Map< String, dynamic > data)
inlineprivate

Definition at line 234 of file notification_service.dart.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _onNotificationTap()

void NotificationService::_onNotificationTap ( NotificationResponse notificationResponse)
inlineprivate

Definition at line 219 of file notification_service.dart.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _parsePayload()

Map< String, dynamic > NotificationService::_parsePayload ( String payloadString)
inlineprivate

Definition at line 226 of file notification_service.dart.

Here is the caller graph for this function:

◆ _saveDeviceToken()

Future< void > NotificationService::_saveDeviceToken ( String token)
inlineprivate

Definition at line 136 of file notification_service.dart.

Here is the caller graph for this function:

◆ _showLocalNotification()

Future< void > NotificationService::_showLocalNotification ( { required String title, required String body, required Map< String, dynamic > payload, } )
inlineprivate

Definition at line 177 of file notification_service.dart.

Here is the caller graph for this function:

◆ init()

Future< void > NotificationService::init ( )
inlineprivate

Definition at line 46 of file notification_service.dart.

Here is the call graph for this function:

◆ removeDeviceToken()

Future< void > NotificationService::removeDeviceToken ( String token)
inlineprivate

Definition at line 155 of file notification_service.dart.

◆ setupAfterAuthentication()

Future< void > NotificationService::setupAfterAuthentication ( SessionEntity session)
inlineprivate

Definition at line 89 of file notification_service.dart.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateSession()

void NotificationService::updateSession ( SessionEntity? session)
inlineprivate

Definition at line 42 of file notification_service.dart.

Here is the caller graph for this function:

Member Data Documentation

◆ _currentSession

SessionEntity NotificationService::_currentSession
private

Definition at line 36 of file notification_service.dart.

◆ _firebaseMessaging

final FirebaseMessaging NotificationService::_firebaseMessaging = FirebaseMessaging.instance
private

Definition at line 38 of file notification_service.dart.

◆ _flutterLocalNotificationsPlugin

final FlutterLocalNotificationsPlugin NotificationService::_flutterLocalNotificationsPlugin
private
Initial value:
=
FlutterLocalNotificationsPlugin()

Definition at line 39 of file notification_service.dart.

◆ _hasPendingNavigation

bool NotificationService::_hasPendingNavigation = false
private

Definition at line 29 of file notification_service.dart.

◆ _instance

final NotificationService NotificationService::_instance = NotificationService._internal()
staticprivate

Definition at line 31 of file notification_service.dart.

◆ navigatorKey

final NotificationService::navigatorKey = rootNavigatorKey
private

Definition at line 30 of file notification_service.dart.


The documentation for this class was generated from the following file: