Fixed example to handle pushes correctly when the app is completely closed.