I am setting a tag to the device and it executes the success callback function which is nice, meaning it ran. But when I check my pushwoosh tags it is empty. Why is this happening?

here is my code:

function setDeviceTags(params) {

//get app version
var appversion;
checkVersionCode(function(version) {
    appversion = version;
})

//register tag
pushNotification.setTags({
    "UUID":params.DeviceUuid,
    "Email":params.Profile.Email,
    "AppVersion":appversion
}, function(a) {
    console.log('tags for this device has been set');

}, function(a) {
    console.log('tags: ' + a);
    console.log('tags has not been set for this device');

});

}

asked 29 Apr '15, 15:11
clintgh's gravatar image

clintgh
3115

Hi,

Could it be possible that you have not set custom Tags in your Pushwoosh Control Panel first? Please note that the setTags method is used for setting the Tags values and you need to create the custom Tags in your Control Panel before setting their values using the setTags method. Also, please note that the Tags feature is available starting from the Premium account level only.

permanent link
answered 07 May '15, 11:08
Andrew_H's gravatar image

Andrew_H
3766

Actually that code works perfect the problem is I changed the app bundle name that's why it's not registering the device. This is fixed now.

permanent link
answered 07 May '15, 11:28
clintgh's gravatar image

clintgh
3115

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:

×64
×37
×10

question asked: 29 Apr '15, 15:11

question was seen: 759 times

last updated: 07 May '15, 11:28