Does it appear on your screen or is it a sound? Maybe you have screen saver activated, try to deactivate it and see if this solves the problem. Also probably you have to set up a password or pin for your phone and you can also chose to Swipe the lock screen if that is what you want.
Worths restarting your phone too.