Push Messaging: how to receive and show messages when in other views?

How to receive and show messages when in other views?
I’m able to display messages when I’m in subscrive/unsubscrive form, but when I’m into other zone of the app, I’m not able to do.
How to create a thread for?