Skip to content

Recipe - Fix Apple Notifications from Frigate Blueprint

Purpose

The Frigate Blueprint is used to create mobile push notifications, with the image embedded and links to the Frigate UI.

The blueprint creates a clip.mp4 link for iOS devices, however the Frigate API Docs recommended not doing this for iOS compatibility reasons, and using the m8u action link instead.

This results in broken images for notifications, on iPhones, Macs or other Apple push notification targets.

Example Broken Image

Implementation

Simplest way to fix this is to remove the data section keys with the mp4, and while doing that, can also remove the Android specific keys that you won't need if only iOS devices to notify.

This uses the data_keys_select configuration, originally designed for the Generic Transport toolbox, and extended to Mobile Push in v1.16.0.

Example Configuration

Example Delivery Definition
...
delivery:
    ...
    apple_push:
      alias: Push notifications to iPhones, iPads and Macs
      transport: mobile_push
      options:
        data_keys_select:
          exclude:
            data:
              attachment:
              video:
              clickAction: # iOS uses 'url'

Variations and Alternatives

  • Hack the blueprint instead, and re-edit it when updating it
  • Create separate deliveries for Android and Apple devices

Apple/Android specific deliveries

deliveries:
  apple_push:
    transport: mobile_push
    options:
    device_manufacturer_select:
        include:
        - Apple
  android_push:
    transport: mobile_push
    options:
    device_manufacturer_select:
        exclude:
        - Apple