Avoid old notifications when connecting device



1 comment

  • Avatar
    Evgeniya Gulyaeva


    There are few possible ways to do such thing.

    1. You can just add the unregisterDevice method into you application when a user goes offline, and call the registerDevice method when he goes online.
    2. You can set a custom tag using a boolean logic, for instance, you can set a Tag "UserStatus" and after that just add a callback in order to check whether a user is online or not and set a corresponding Tag value within the application, e.g online and offline, using the setTags method of the Pushwoosh SDK. After that you will be able to send pushes to users with filter based on this Tag (through API or CP).

    I hope that this information will be helpful for you!

Please sign in to leave a comment.