중요 경보에 대한 신호음 구성

  • 릴리스 버전: Xanadu
  • 업데이트 날짜 2024년 08월 01일
  • 소요 시간: 2분
  • ITSM 모바일 에이전트 애플리케이션에서 중요한 알림에 사용할 기본 신호음을 선택합니다.

    시작하기 전에

    필요한 역할: admin

    프로시저

    1. 모두 > 시스템 정의 > 스크립트 포함으로 이동합니다.
    2. 스크립트 목록에서 CriticalPushPayloadBuilder를 검색하여 선택합니다.
      선택한 스크립트 CriticalPushPayloadBuilderITSM 모바일 에이전트 애플리케이션 범위 내에 있는지 확인합니다.
    3. CriticalPushPayloadBuilder 기록을 열고 원하는 신호음 이름으로 스크립트를 편집합니다.
      var CriticalPushPayloadBuilder = Class.create();
      CriticalPushPayloadBuilder.prototype = {
          initialize: function(currentGR, json, attributes) {
              this.currentGR = currentGR;
              this.json = json;
              this.attributes = attributes;
          },
          buildJSON: function() {
              if (this.attributes == null || this.attributes.isCritical == null || !(this.attributes.isCritical == "true"))
                  return this.json;
              this.json["sncGoogleKeys"] = {
                  "android": {
                      "priority": "high"
                  },
                  "priority": "high"
              };
              this.json["aps"]["sound"] = {
                  "critical": 1,
                  "name": "NotificationAlert-9-Short.caf",
                  "volume": 1
              };
              return this.json;
          },
          type: 'CriticalPushPayloadBuilder'
      };
      아래 옵션에서 신호음을 선택할 수 있습니다.
      • NotificationAlert-1.caf
      • NotificationAlert-2.caf
      • NotificationAlert-3.caf
      • NotificationAlert-4.caf
      • NotificationAlert-5.caf
      • NotificationAlert-6.caf
      • NotificationAlert-7.caf
      • NotificationAlert-8.caf
      • NotificationAlert-9.caf
      • NotificationAlert-10.caf
      • NotificationAlert-11.caf
      • NotificationAlert-12.caf
      • NotificationAlert-13.caf
      • NotificationAlert-14.caf
    4. 업데이트를 선택합니다.