add screenUnlocked and appNotFocused conditions
version 0.5.2