checkAndEnableNotificationSound static method

void checkAndEnableNotificationSound()

Implementation

static void checkAndEnableNotificationSound() {

  SessionManagement.vibrationType("0");
  SessionManagement.convSound(true);
  SessionManagement.muteAll(false);

  Mirrorfly.getDefaultNotificationUri().then((value) {
    debugPrint("getDefaultNotificationUri--> $value");
    if (value != null) {
      // Mirrorfly.setNotificationUri(value);
      SessionManagement.setNotificationUri(value);
      Mirrorfly.setNotificationSound(true);
      Mirrorfly.setDefaultNotificationSound();
      SessionManagement.setNotificationSound(true);
    }
  });
}