Hi, we want to allow our users an option to enable/disable if the want to get our push notifications from us. Does your API allow for this using the Phonegap SDK?



asked 24 Jul '14, 18:39
Ge%20Rd's gravatar image

Ge Rd

Unfortunately, we do not offer this functionality out-of-the-box, although there is an easy enough workaround: you can use our Tags feature.

The process is roughly like this: you create an integer Tag "push_enabled", and when your user disables notifications from your app, you set a Tag value "0" using our setTags method. Later, you can send a message only to the group of your users with pushes enabled by adding the following line to the createMessage request:

permanent link
answered 28 Jul '14, 10:32
Dmitry%20%20Dyudeev's gravatar image

Dmitry Dyudeev

Thank you Dmitry,

when I create the push enabled tag I have to set it to 1 myself, that is not the default right?

And in your code line...


What is the "EQ" paramter for?



(28 Jul '14, 10:59) Ge Rd Ge%20Rd's gravatar image

You are most welcome!

You are correct, there isn't any default value of a custom Tag, you would need to specify it.

As for the "EQ" parameter, it simply means "equals". Please note that there are several parameters which might be used in different use-cases. You may find the list of them in our Remote API guide.

(28 Jul '14, 11:04) Dmitry Dyudeev Dmitry%20%20Dyudeev's gravatar image
Your answer
toggle preview

Follow this question

By Email:

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



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:


question asked: 24 Jul '14, 18:39

question was seen: 781 times

last updated: 28 Jul '14, 11:05