0

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.

2 Answers2

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