Chapter 07

Siri, Shortcuts & Spotlight

Three things PushFit can do without being opened, wired into every place iOS lets an app be asked: your voice, the Shortcuts app, the Action Button, and search.

The three actions

PushFit publishes three App Intents. They are available everywhere iOS surfaces intents (Siri, the Shortcuts app, Spotlight, the Action Button, Focus automations, Home Screen shortcuts) with no setup at all.

Start Push-Up Workout

Opens PushFit and drops you straight into a workout, already counting. The one intent that has to open the app, because the camera has to see you.

+

Log Push-Ups

Adds a number of push-ups to today without opening the app, then tells you your new total: "Logged 20. That's 82 push-ups today." Takes any count from 1 to 200.

?

Today's Push-Ups

Answers out loud, and returns the number as a value so a Shortcut can do arithmetic with it.

What to say

These phrases work the moment PushFit is installed. Nothing has to be recorded or trained first.

Zero-setup Siri phrases
SayWhat happens
“Start a workout in PushFit”Opens the app into a live workout.
“Start my push-ups in PushFit”The same thing, phrased the way people actually ask.
“Log push-ups in PushFit”Siri asks how many, then logs them without opening anything.
“Add push-ups to PushFit”As above.
“How many push-ups have I done in PushFit”Siri reads today's total back.
“PushFit count today”The short version of the same question.

If you have PushFit Pro, use its name in the phrase instead. Siri matches the app you actually have installed.

In the Shortcuts app

All three actions appear under PushFit in the Shortcuts app, with parameters you can fill from anything else in a shortcut. Some that people actually build:

  • A morning routine that logs a fixed set, reads your total back, and starts a playlist.
  • An automation on arriving home that starts a workout.
  • A Focus trigger: when Work Focus ends, ask for push-ups.
  • A daily check using Today's Push-Ups as a number, comparing it against your goal and sending yourself a notification if you are short.

Because Log Push-Ups never opens the app, it can run inside an automation without interrupting whatever you are doing.

The Action Button

On an iPhone with an Action Button, go to iOS SettingsAction ButtonShortcut and pick Start Push-Up Workout. Then a long press on the side of the phone is the whole ritual: press, put the phone down, start pushing.

It works the same way from the Control Center controls gallery and from a Home Screen shortcut, and PushFit supplies each action with its own symbol so it is recognisable in those pickers.

Spotlight

PushFit publishes a small, deliberately fixed set of entries to Spotlight, so swiping down on the Home Screen and typing "push" gets you somewhere useful.

Start a Push-Up Workout
“Put your phone on the floor and start pushing. PushFit counts every rep.” Opens into a workout.
Push-Up Stats
Charts, streaks and personal bests. Opens the stats tab.
Push-Up Calendar
Which days you trained. Opens the calendar.
Push-Up Personal Best
Carries the real number: “Your best workout so far: 117 push-ups.”
Push-Up Streak
Carries the real number: “You're on a 36 day push-up streak.”

The last two are re-indexed after every workout, so the numbers in search results are current rather than whatever they were on install. They only appear once there is something to show; a brand new install has no entry reading zero.

All of it is translated, including the search keywords, so searching in your own language finds it.

Individual workouts are deliberately not indexed. A long-time user has thousands of them, they all read the same, and re-indexing that many items on every launch would cost far more than it returns. The five entries above are the ones worth surfacing.