bearnithi / bn-ng-idle

Angular user idle detector service
28 stars 11 forks source link

not working on iOS #11

Open kiransanmol opened 4 years ago

kiransanmol commented 4 years ago

Hi, Thanks for the useful library, it's working well in Android but not in iOS. After idle state around 2 min finishes login user will logout for that I have used this.bnIdle.stopTimer(); & navigated to login page. It's working in Android but getting issue in iOS, first time it logout after 2 min idle state but when user login again it logout within few seconds. this.bnIdle.startWatching(120).subscribe((res) => { if (res) { let token = localStorage.getItem('Token'); if (token) { this.saveform('close'); } } })

kleky commented 4 years ago

Maybe not the issue, but i noticed that this doesn't track the touchstart event.