Skip to content

Expose a refresh App Intent so SideStore can be refreshed from Shortcuts #1460

Backlog

Description

@sanmendongrili-tech

Please describe your feature request and it's use cases.

LiveContainer ships SideStore as a built-in app, but the SideStore refresh action is currently not reachable from Shortcuts or Shortcuts automations.

Why it isn't reachable today

SideStore's RefreshAllAppsIntent lives in SideStore/Intents/App Intents/RefreshAllAppsIntent.swift in the SideStore repo, and is registered by SideStore's own AppShortcutsProvider in AltStore/Intents/App Intents/AppShortcuts.swift:

AppShortcut(intent: RefreshAllAppsIntent(),
            phrases: ["Refresh \(.applicationName) apps", ...],
            shortTitle: "Refresh All Apps", ...)

However, when SideStore is installed inside LiveContainer, none of this reaches the system. The RefreshAllAppsIntent belongs to the SideStore bundle, which has no independent App Intent identity — the system only knows about the host app (LiveContainer).

LiveContainer already works around this internally. SideStoreSupport/SideStoreClient.swift invokes the intent through the private LNAction / LNAppContext API via PrivateIntentRunner:

let parent = PrivateIntentRunner.run(
    identifier: identifier,
    mangledTypeName: mangledTypeName
) { result, error in ... }

This works, but it is only reachable from LiveContainer's own UI. As a result, the only App Intent LiveContainer exposes to Shortcuts is LaunchAppIntent (launching an app inside LiveContainer) — there is no way to trigger a refresh.

At the moment the only workaround is a Shortcuts step that opens sidestore:// and then manually taps the refresh button, which is not automatable and cannot report success or failure.

This matters because free Apple ID developer certificates expire after 7 days, so users need a reliable way to keep their sideloaded apps alive — ideally from a scheduled Shortcuts automation that runs unattended.

Proposed solution

Please expose a public App Intent from LiveContainer that performs a SideStore refresh, for example:

@available(iOS 17.0, *)
struct RefreshSideStoreAppsIntent: AppIntent {
    static var title: LocalizedStringResource = "Refresh SideStore Apps"
    static var description = IntentDescription("Refreshes the apps installed by SideStore to prevent them from expiring.")
    static var openAppWhenRun = false

    func perform() async throws -> some IntentResult & ProvidesDialog {
        // reuse the existing SideStoreIntentCaller / PrivateIntentRunner path
        return .result(dialog: "All apps have been refreshed.")
    }
}

and register it in an AppShortcutsProvider so it also becomes available to Siri and Spotlight.

Ideally it would also accept an optional bundleID parameter so a single app can be refreshed.

Describe alternatives you've considered

  • Using the sidestore:// URL scheme with a refresh host. This is the approach that works for the standalone SideStore app (whose URLHandler currently supports install, source, pairing, certificate and appbackupresponse but no refresh), but a deep link still opens the app, so it does not solve the "run silently in the background" requirement. A dedicated App Intent with openAppWhenRun = false is the better fit for Shortcuts automations.
  • Adding a refresh host to SideStore's URLHandler.swift on the SideStore side. This would benefit standalone SideStore users, but on its own it does not help LiveContainer users.
  • Triggering a refresh over the LocalDevVPN / minimuxer channel. This is more complex and requires the VPN to be running, so it is not a good fit for a lightweight automation.

Additional context

  • Relevant files:
    • SideStoreSupport/SideStoreClient.swift — already contains SideStoreIntentCaller.callRefreshIntent2(...) / performRefreshForReal(identifier:mangledTypeName:server:), which is exactly the refresh logic that needs to be surfaced
    • SideStoreSupport/PrivateIntentRunner.{h,m} — the private-API bridge used to run the intent out-of-process
    • LaunchAppExtension/LaunchAppIntent.swift — the only App Intent currently exposed by LiveContainer, a good template for the new one
  • PrivateIntentRunner already passes openAppWhenRun:NO when constructing the LNAction, so the underlying refresh already runs without foregrounding the app — the intent is simply not reachable from outside LiveContainer today.
  • SideStore/Intents/App Intents/RefreshAllAppsIntent.swift in the SideStore repo does not declare static var openAppWhenRun = false (unlike InstallIPAIntent in the same file), which means the standalone app pulls itself to the foreground when the intent is run. Setting that on the SideStore side as well would make the behaviour consistent across both distributions.

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