Good afternoon. I would like to know if there is any way to make the pushwoosh only send notifications if the user is online with the device, so that the previous notifications do not appear all at once when he turn on the device.

Sorry for my English

asked 23 Feb '15, 18:31
Rodrigo%20Dias's gravatar image

Rodrigo Dias
1

Hi,

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!

permanent link
answered 27 Feb '15, 13:32
Andrew_H's gravatar image

Andrew_H
3766

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×446
×47
×38

question asked: 23 Feb '15, 18:31

question was seen: 720 times

last updated: 27 Feb '15, 13:32