Skip to content
Erik Gomez edited this page Feb 22, 2021 · 27 revisions

fallbackLanguage - Type: String, Default Value: "en"

The language to revert to if no localizations are available for the device's current language.

forceFallbackLanguage - Type: Boolean, Default Value: False

Force the custom localizations to the value of fallbackLanguage.

forceScreenShotIcon - Type: Boolean, Default Value: False

Force the built-in ScreenShot icon to render in the UI if a ScreenShot path is not passed.

iconDarkPath - Type: String, Default Value: ""

A path to a local jpg, png, icns that contains the icon for dark mode. This will replace the Apple logo on the left side of Nudge.

iconLightPath - Type: String, Default Value: ""

A path to a local jpg, png, icns that contains the icon for light mode. This will replace the Apple logo on the left side of Nudge.

screenShotDarkPath - Type: String, Default Value: ""

A path to a local jpg, png, icns that contains the screen shot for dark mode. This will replace the Big Sur logo on the lower right side of Nudge.

screenShotLightPath - Type: String, Default Value: ""

A path to a local jpg, png, icns that contains the screen shot for light mode. This will replace the Big Sur logo on the lower right side of Nudge.

simpleMode - Type: Boolean, Default Value: False

Enables Nudge to launch in the simplified user experience

updateElements - Type: Array, Default Value: []

A list of arrays, enabling further customization to the Nudge UI. Please see the updateElements wiki article for more information.

Example (JSON)

{
  "userInterface": {
    "forceScreenShotIcon": false,
    "iconDarkPath": "/somewhere/logoDark.png",
    "iconLightPath": "/somewhere/logoLight.png",
    "screenShotDarkPath": "/somewhere/screenShotDark.jpg",
    "screenShotLightPath": "/somewhere/screenShotLight.jpg",
    "simpleMode": false,
    "updateElements": []
  }
}

Example (Mobile Configuration)

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>PayloadContent</key>
    <array>
      <dict>
        <key>PayloadDescription</key>
        <string>Configures userInterface preferences</string>
        <key>PayloadDisplayName</key>
        <string>Nudge Preferences</string>
        <key>PayloadIdentifier</key>
        <string>com.github.macadmins.Nudge.preferences.example.userInterface</string>
        <key>PayloadOrganization</key>
        <string></string>
        <key>PayloadType</key>
        <string>com.github.macadmins.Nudge</string>
        <key>PayloadUUID</key>
        <string>CA02957C-7472-446B-9F77-3E0414405556</string>
        <key>PayloadVersion</key>
        <integer>1</integer>
        <key>userInterface</key>
        <dict>
          <key>forceScreenShotIcon</key>
          <false/>
          <key>iconDarkPath</key>
          <string>/somewhere/logoDark.png</string>
          <key>iconLightPath</key>
          <string>/somewhere/logoLight.png</string>
          <key>screenShotDarkPath</key>
          <string>/somewhere/screenShotDark.png</string>
          <key>screenShotLightPath</key>
          <string>/somewhere/screenShotLight.png</string>
          <key>simpleMode</key>
          <false/>
          <key>updateElements</key>
          <array/>
      </dict>
    </array>
    <key>PayloadDescription</key>
    <string>Configures Nudge application</string>
    <key>PayloadDisplayName</key>
    <string>Nudge</string>
    <key>PayloadIdentifier</key>
    <string>com.github.macadmins.Nudge.example.userInterface</string>
    <key>PayloadOrganization</key>
    <string>Nudge</string>
    <key>PayloadScope</key>
    <string>System</string>
    <key>PayloadType</key>
    <string>Configuration</string>
    <key>PayloadUUID</key>
    <string>2F54F734-132D-4539-B583-F1DCF23DB5EB</string>
    <key>PayloadVersion</key>
    <integer>1</integer>
  </dict>
</plist>
Clone this wiki locally