panayotcankov / nativescript-idle Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Getting the following error:
***** Fatal JavaScript exception - application has been terminated. *****
Native stack trace:
1 0x10e064724 -[TNSRuntime executeModule:referredBy:]
2 0x108d0e7b1 main
3 0x111077d81 start
JavaScript stack trace:
1 r@file:///app/bundle.js:1:20294
2 @file:///app/bundle.js:1:20425
3 @file:///app/bundle.js:1:20499
4 @file:///app/bundle.js:1:20791
5 t@file:///app/vendor.js:1:189
6 @file:///app/bundle.js:1:10569
7 t@file:///app/vendor.js:1:189
8 @file:///app/bundle.js:1:20163
9 t@file:///app/vendor.js:1:189
10 @file:///app/bundle.js:1:29544
11 t@file:///app/vendor.js:1:189
12 @file:///app/bundle.js:1:28268
13 t@file:///app/vendor.js:1:189
14 @file:///app/bundle.js:1:21688
15 t@file:///app/vendor.js:1:189
16 @file:///app/bundle.js:1:21493
17 t@file:///app/vendor.js:1:189
18 webpackJsonp@file:///app/vendor.js:1:503
19 anonymous@file:///app/bundle.js:1:98
20 evaluate@[native code]
21 moduleEvaluation@[native code]
22 @[native code]
23 promiseReactionJob@[native code]
24 require@[native code]
25 anonymous@file:///app/starter.js:2:8
26 evaluate@[native code]
27 moduleEvaluation@[native code]
28 @[native code]
29 promiseReactionJob@[native code]
JavaScript error:
file:///app/bundle.js:1:20294: JS ERROR TypeError: Attempted to assign to readonly property.
Any ideas on how to getting it working with AOT?
I need to detect the time when user is not interacting with the app. Any possible solution for this? I have tried with @ng-idle/core and some other plugin too. But nothing is working with nativescript as window and dom is not supported by the nativescript. Any help will be appriciated. @PanayotCankov
Hi @PanayotCankov, this package seems to be one of the limited options to work long-term in NativeScript apps without user interaction.
Can this also be used to avoid going into idle state to e.g. keep a socket connection alive? If yes, how could this be achieved?
Thanks in advance!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.