I have an "resume" event listener and i want to be able to distinct from firing the event because the user clicked the application icon or the user locked the tablet and then unlocked.
Asked
Active
Viewed 60 times
0
-
Can you show your code? – Luis Miguel Dec 16 '15 at 13:53
-
@LuisMiguel It is a big and complex application and my event listener is not implemented yet. – user2866373 Dec 16 '15 at 14:32
-
This sort of question is too broad/generic, so it will probably be closed. Follow the guidelines for appropriate questions to post in stack overflow – Luis Miguel Dec 16 '15 at 14:36
2 Answers
0
It seems there's no way to do this in Obj-C/Swift, so the same goes for Titanium then. Although you might be able to do a hack similar to https://stackoverflow.com/a/19637857/4626813

Community
- 1
- 1

Fokke Zandbergen
- 3,866
- 1
- 11
- 28
0
There is one more event listener named as "resumed" Ti.App.addEventListener("resumed",function(){});
This will listen when device is unlocked.

arun
- 107
- 6