initializePlatformSpecifics method

dynamic initializePlatformSpecifics()

Initialize the notification settings for iOS and Android

Implementation

initializePlatformSpecifics() {
  var initializationSettingsAndroid =
      AndroidInitializationSettings('notification_icon');
  var initializationSettingsIOS = DarwinInitializationSettings(
    requestAlertPermission: true,
    requestBadgePermission: true,
    requestSoundPermission: false,
    onDidReceiveLocalNotification: (id, title, body, payload) async {
      _logger.info(
          'received notification ::id $id, title $title, body $body, payload $payload');
    },
  );

  initializationSettings = InitializationSettings(
      android: initializationSettingsAndroid, iOS: initializationSettingsIOS);
}