Is there anyway to filter push notifications that im send to my app?

I mean, if my user logged out (fb connect) from my app and for somereason my server is miss sync with the loggin-out, i will send to the user notifications while he logged out, which is unwanted situation..

Thanks.