I need to detect user inactivity to perform an action like log out the user. However I can’t find out how to do this on iOS and Angular.
I tried a
tap listener on my
Page but that will not get triggered if there is a button in the way so I’d have to put a listener on everything ever that is tappable with that solution.
Instead I found
UIApplication that has a
sendEvents function that could be used but I can’t find how to subclass that class? I found how to use
UIApplicationDelegate but it doesn’t let me intercept events.
How do I subclass
UIApplication or solve this in another way?