Im trying to create a session timeout when the user is idle for 1 min. I'm planning to use tap event from the topmost page, page-router-outlet (tap)="globalTap()" and reset the timer whenever this tap event is fired. Also, i think i'll add all the user events like swipe, double tap etc. to reset the timer.
Is this the best approach to this problem? Are there sideffects on catching global events on the page router outlet?
Similar question, Detect App inactivity/idle timeout in NativeScript, but Im not keen on the solution because its for android only and it seems like a patch for me.