DEV Community

Discussion on: Using the x-callback-url with Shortcuts on iOS was great until... (it's been fixed!)

Collapse
 
variablex profile image
Raj Kotecha

Just tried this in scriptable and pythonista. Script below.

Works ok running direct from shortcuts. First time I run it from share sheet it behaves as you’ve described. Goes to shortcuts home vs. returning to the shortcut.

Subsequent attempts to run it from share sheet fail — seems to time out. I also noticed at this point a bunch of other sharesheet shortcuts are hosed. They don’t use x-callback and generally work fine. They all time out. Rebooting the device fixes them.

//Scriptable:
const successURL = args.queryParameters["x-success"];

// return to Shortcuts
Safari.open(successURL + "?x-success=yes");