how to create custom shortcut in lockscreen

Hello,

I am looking to make a shortcut that works in lock screen mode like shazam.

I've looked at a lot of tutorials but I don't see where to start:

  • Widget extension
  • I'm not sure what to do with it, but I'm looking for a way to make it work.

Indeed, I don't need to display something on the screen but rather to call an API from my server and I don't know what to do with intentconfiguration or something else ...

The idea is to use this shortcut to put it in Accessibility => touch

Thanks for your help

how to create custom shortcut in lockscreen
 
 
Q