Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MikeMcCollister

macrumors regular
Original poster
Dec 14, 2021
105
33
Charlottesville, Virginia
I have crated a shortcut to make it easier, or more streamlined, to log a karate session as I can’t wear my Apple Watch during karate. I have made the simplest shortcut possible to just log a workout with “ask each time” set for the date, duration, and calories. The distance is untouched as that is not used with martial arts.

When I run the shortcut (see attached screen capture), I enter the expected information, but nothing gets logged into the Health or Fitness app. Any ideas what is wrong here? I have been trying to do this for years and it never works. If I go into the Health app and enter the data there it works OK.

I am using iOS 18.0.1.

Thanks,

Mike
 

Attachments

  • IMG_5418.jpeg
    IMG_5418.jpeg
    458 KB · Views: 42
Permissions might be messed up?

Tap the Info button/tab for the Shortcut, Privacy, Reset Privacy. Try running again to have Shortcut ask for permissions.

Or: Health > Sharing > Apps > Shortcuts > Allow Shortcuts to Write and make sure Workouts are toggled on, as well as Active Energy, Walking + Running Distance.

Or: delete and re-key in the Shortcut.

Was able to create the Shortcut and did save the information in Health. Don't think it will update Fitness, believe that is one-way data sharing.
 
Last edited:
NoBoMac,

Thanks for the suggestions. This was a new shortcut just to see why this was not working and all of my permissions were enabled.

It turned out that since I left "Distance" to blank that it failed when logging the workout. If I run it from within the Shortcuts app then I get the "There was a problem running the shortcut 'Log Karate'" message. By adding 0 to the miles, then it works. I have been running it as a shortcut from the home screen and I get no such error. I wish that there were try/catch statements in Shortcuts so that I could check for this.
 
  • Like
Reactions: NoBoMac
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.