Triggering a function when the screen gets unlocked. Is this even possible?

Is there a way of triggering a function in my app as soon as the screen gets unlocked, even if the app is not started?

I could not find anything in the capacitor docs or capacitor plugins which is helpful.

Any Ideas?

No, thats not how it works. That’s why you won’t find anything on it.