Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onIdleTimeout is not triggered when app goes to background in iOS #136

Open
coolvasanth opened this issue Jan 17, 2020 · 5 comments
Open
Labels

Comments

@coolvasanth
Copy link

Describe the bug
I have an Ionic app, in Android everything works as expected. But in iOS when app goes to background the time elapsed is not considered. For ex: If I'm tracking for 120 seconds and app goes to background at 80th second and comes back to foreground, then time tracks from 80th second only. Time elapsed in the background is not considered.

To Reproduce:
You can use iOS device with running iOS 12 or 13. And test the Description explained.

Expected behavior :
Even when app goes to background, the time elapsed should be considered.

Environment:

  • Mobile or Desktop: Any iOS Mobile
  • Browser: NA
  • Version: iOS version 12 or above
  • Angular version: Ionic 3/4
  • NodeJS version: 10.17.0
  • Language (TypeScript x.x, ES5, ES2015, etc.): Typescript
@skyleguy
Copy link

This is the feature I was going to use this package for. Would really love to see this fixed!

@mychalhackman
Copy link
Contributor

#131 has a PR for the fix back in Sept

@komalpopli
Copy link

a similar issue is happening with me when idle.onTimeout is not firing when the app is running in background for chrome and edge but is working fine for firefox. I am sure it is because of background task suspension in chrome and edge but the library should have a solution for that.

@girish-fuluskar
Copy link

I am also facing the same issue but only for iOS. For Android it is working as expected but for iOS it is not working. Does anyone have any solution for the same?

@s-ramesh
Copy link

I am also facing the same issue but only for iOS. Does anyone have any solution for the same appreciated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants