Comments (2)
Hi Doruk,
it's probably way too late for this response but I'll try to answer anyways. ifvisible works on top of browser provided visibility api. As you can see on caniuse.com browser support is limited in some cases. for older Android browsers it says to use webkit
prefix and ifvisible already does this.
Plus ifvisible has a polyfill in place for older browsers, but it piggybacks on top of page blur, page focus events and those are only available on desktop browsers I think.
So if it's not working on the native browser, it's quite possible that the browser does not trigger these events on device sleep. And to my current knowledge, there is not much option to get that working.
Sorry :/
from ifvisible.js.
Hi Serkan,
Indeed it was some time ago. No worries :)
Ifvisible.js solved many of the use cases on iOS and Android. For those browsers that does not work properly, I implemented a timer logic.
I used Tock.js for that. So if the user is away for a certain time it triggers an event. And you can build your application logic around this.
Thanks for the library and thanks for the reply.
Cheers,
Doruk
from ifvisible.js.
Related Issues (20)
- Disable Idle Check HOT 1
- Docs about how to use ifvisible.js on Angular 2 app? HOT 3
- Bug with Angular 2 HOT 2
- Project naming convention messes up my import using Typescript and Webpack
- Not working with alt+tab in windows HOT 2
- window 'blur' and 'focus' not handled HOT 1
- ifactive.js? HOT 1
- Activated on Page Load?
- ifvisible.OnEvery doesn't continue after switching tabs HOT 4
- IE9 : invalid calling object error
- Bind to new windows HOT 1
- switch to other web page on tab on chrome, idle event is trigger HOT 1
- Memory leak with idle checking HOT 4
- Idle fired incorrect HOT 3
- destroy events HOT 2
- detecting external windows active HOT 2
- How to use in Angular 7 HOT 1
- Incorrect TypeScript declarations HOT 1
- Latest version is not published as "latest" on NPM HOT 2
- No debounce is applied HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ifvisible.js.