Push notifications are working great for me except in one scenario. The app we are working on requires you login/logout, so when you are logged in, the server sends you notifications, and when you are not logged in, it shouldn't.
If a user deletes the app while logged in, the server doesn't know that the user has deleted the app. This isn't a problem if the app stays deleted and the server attempts to send a notification- the APNS feedback mechanism on the server side catches this and closes the session.
What if the user reinstalls the app? They are still logged in from the server's perspective. On app startup, you can send a log me out message to the server. What if you don't start the app? The app will still see notifications coming in!
Is this a stupid edge case I shouldn't worry about? Or is there an accepted way to solve this.