Push notifications are sent from your server ... so you must implement this method yourself and delete or disconnect the device in the database on your server, where you store active devices.
If you only disable them locally on your device, your server will still send messages until you receive a notification from the feedback service .. which you should check ...
source share