Help & support

Apple Shortcuts for habit check-ins on iPhone

Check in a daily habit with one shortcut, or have Mathy practice check it in automatically when you switch away from Mathy.

Create a habit check-in shortcut

On an iPhone with iOS 26 or later, open Main Character and sign in. Choose an active daily habit with a goal of one check-in per day that allows manual check-ins.

  1. In Apple Shortcuts, tap + to create a shortcut. If you see the description screen, tap Edit.
  2. Search for Check In Habit under Main Character and add it. Tap Habit and select the habit you want to track.
  3. Leave Activity Day and Activity Time Zone blank to use the current Main Character habit day. Tap Run and allow access if Shortcuts asks. Running it counts as a real check-in.

You can reuse Check In Habit with another app that provides a Shortcuts action. Use an If action to check the app’s result before logging the habit, as in the Mathy example below.

Automatically check in after Mathy practice

Open Mathy and set up a learner. Match your iPhone’s time zone to your Main Character account time zone before connecting the two apps.

  1. Create a new shortcut. Add Mathy’s Get Today’s Practice Activity action and choose the learner you want to track.
  2. Add an If action. Tap the Mathy result in the condition and select its Practice Day Qualified property. Set the condition to is Yes.
  3. Add Main Character’s Check In Habit between If and Otherwise. Choose your habit. If Shortcuts filled in the Habit field with a variable, clear it before choosing the habit.
  4. Expand the check-in action. In each activity field, insert the result of Get Today’s Practice Activity, then tap the variable and select the matching property. Use Mathy’s Activity Day for the day and Activity Time Zone for the time zone.
  5. Run the shortcut manually once and allow access if asked. The check-in runs only on a day that qualifies in Mathy.
  6. On iOS 27 or later, edit the shortcut, open the Automation action category, and add the App trigger. Choose Mathy and Closed, then keep Automation enabled. On iOS 26, create an App automation from the Automation tab. Choose Mathy, Is Closed, and Run Immediately, then select your saved shortcut.

To test it, do enough practice to check off the day in Mathy, switch to another app, and check your habit in Main Character. Leaving Mathy again keeps the same daily check-in.

Do shortcuts sync between iPhone and Mac?

Your shortcut library syncs when you use the same Apple Account and turn on iCloud Sync in Shortcuts. Enable personal automations on each iPhone where you want them to run. Use an iPhone for this Mathy setup, which is where we’ve verified both actions and the app-close trigger. Running any synced shortcut on Mac requires each of its actions to be available on that Mac. Read Apple’s guide to syncing shortcuts on Mac.

If a check-in doesn’t appear

  • Action or habit missing? Update and open both apps, then look again in Shortcuts. If you changed accounts or removed the selected learner or habit, choose an available one in the action.
  • Check-in queued? When you’re back online, run the shortcut again or open Main Character to retry.
  • Data unavailable? Unlock your iPhone and retry. If the date or time zone doesn’t match, check both time zones. Mathy reads today’s activity when the shortcut runs, so run it before midnight for that day’s practice.
  • Undid a check-in? Shortcuts skips that habit and day after an undo. You can still check it in manually.