backgroundHandler function
Future<void>
backgroundHandler(
- RemoteMessage message
)
Implementation
@pragma('vm:entry-point')
Future<void> backgroundHandler(RemoteMessage message) async {
final instance = PushNotificationsObserver.instance;
if (instance.onBackgroundHandlerBeforeNotification != null) {
instance.onBackgroundHandlerBeforeNotification!();
}
/*if (instance.notificationEnabled) {
instance.service.setupNotifications();
instance.service.showNotification(message);
}*/
if (instance.onBackgroundHandlerAfterNotification != null) {
instance.onBackgroundHandlerAfterNotification!();
}
}