Configurer une sonnerie pour les alertes critiques
Sélectionnez une sonnerie préférée pour vos notifications critiques dans l'application Agent mobile ITSM.
Avant de commencer
Rôle requis : admin
Procédure
- Accédez à la Tous > Définition du système > Inclusions de script.
-
Recherchez et sélectionnez CriticalPushPayloadBuilder dans la liste des scripts.
Assurez-vous que le script CriticalPushPayloadBuilder sélectionné se trouve dans le périmètre de l'application Agent mobile ITSM.
-
Ouvrez l'enregistrement CriticalPushPayloadBuilder et modifiez le script avec le nom de sonnerie de votre choix :
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' };Vous pouvez sélectionner des sonneries parmi les options ci-dessous :- AlerteNotification-1.caf
- AlerteNotification-2.caf
- AlerteNotification-3.caf
- AlerteNotification-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
- Sélectionnez Mettre à jour.