Skip to content

Live Activity fails to start on Personal Team builds because pushType: .token is requested without APNs entitlement #2532

Description

@wilhem-meignan

Describe the bug

Loop 3.14.8 Live Activity does not appear at all when the app is built with a free Apple Developer / Personal Team account.

Xcode debug output:

ERROR: Error while creating empty live activity: The operation couldn’t be completed. (com.apple.ActivityKit.ActivityInput error 0.)

The built app has NSSupportsLiveActivities = true, the Loop Widget Extension is embedded and signed correctly, and the app/widget App Group identifiers match.

A Personal Team build has no aps-environment entitlement.
initEmptyActivity currently calls:
Activity.request(..., pushType: .token)
Changing only:
pushType: .token
to:
pushType: nil
allows the Live Activity to be created and work normally.

This suggests Personal Team builds cannot create the activity when Loop unconditionally requests a Live Activity push token. A possible fix would be to fall back to pushType: nil when push-token creation fails, or conditionally request .token only when APNs is available.

Attach an Issue Report
n/a

To Reproduce
Try to enable the live activity. Nothing happens.

Expected behavior
Live activity is displayed on the lock screen/in the dynamic island.

Screenshots
n/a

Phone

  • Hardware: iPhone 16 Pro Max
  • OS Version: iOS 27

Loop Version

  • Version Number: 3.14.8
  • Repo: Loop

CGM

  • Device: Dexcom G7

Pump

  • Manufacturer: Insulet
  • Model: OmniPod 5
  • Firmware version: n/a

Additional context
My developer account was paid years ago but is not anymore. I can sign an app for a year but can't add the push notifications, Siri, etc capabilities.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions