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
Detect App inactivity/idle timeout in NativeScript #5423
Comments
HI @atchakraborty, |
@tsonevn already used but its not giving me any option to check user interactivity or idle time. The only function is there for long waiting task. any other help? |
@atchakraborty the repository is for logging issues, bugs and features related to NativeScript. I have updated my sample with overwritten Closing as duplicate to https://stackoverflow.com/questions/48788676/detect-app-inactivity-idle-timeout-in-nativescript |
@NickIliev After extending the application like that other event callbacks stopped firing within the app:
Those callbacks never log. Is that expected behavior? If not, how can I fix it? Also, is it possible to somehow expose EDIT: Actually, I was able to get the callbacks to work using:
I guess my question is would it be possible to get hold of |
How to achieve this for iOS using NativeScript and Angular? |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I need to detect user's inactivity time in NativeScript app. I tried with few plugins (like ng-idle) but they are not compatible with NativeScript. I also tried to to emit application level event (in page router outlet) but it is not working either. Any help will be appreciated.
Infact I tried to extend activity, onPause, onResume everything is calling except onUserInteraction
public onUserInteraction(): void { console.log("onUserInteraction overwritten from app.ts"); // OVERWRITTEN BEHAVIOUR }
This piece of code never getting called.
Yes I have declared
@JavaProxy('com.tns.NativeScriptActivity')
and I have used tns-platform-declarations as well.Please let me know what else to do?
The text was updated successfully, but these errors were encountered: