Skip to content

Primary Registration Alert

Simone Martorelli edited this page Feb 8, 2021 · 2 revisions

Stored values for the these alerts are found in AlertConstants.swift. Below are examples of alerts displayed with the content applied from the constants file:

Failure to Launch Alert

failureToLaunchAlertImage

This is alert is displayed in the event that the jamf binary can not be located based on the stored path found in JAMFConstants.swift at JPSPaths.binaryPath.

You can alter the text for the alert in AlertConstants.swift:

First line: AlertText.FailureToLaunch.header

Second line: AlertText.FailureToLaunch.message

Button text: AlertText.UserInteractionButtons.quit

Opt-out Alert

optOutAlertImage

If a customer were to click the Cancel button on the primary registration view, they would receive the above alert.

First line: AlertText.RegistrationCancelAlert.header

Second line: AlertText.RegistrationCancelAlert.message

Left button text: UserInteractionButtons.yes

Right button text: UserInteractionButtons.no

If the customer decides to proceed with the action and click the left button, this make a request to the jamf binary via the IntegrationHelper to run a policy to remove the framework. This policy event trigger string is stored in the JAMFConstants.swift file in JAMFPolicyEventID.removeFramework.

By clicking the right button however, the action is logged with the text stored in UserInteractionButtons.InteractionLogText.removeFrameworkCancelledLog.

Clone this wiki locally