I can not assign tags to a device using SetTagsRequest::create() The code is:


$request = SetTagsRequest::create()
            ->setTag('test', "testStringTag")
            ->setHwid('**');
$response = $pushwoosh->setTags($request);

$response->isOk() is allways true, even if I use wrong parameters (wrong Hwid or tag name)

Then, when I execute:


$notification = Notification::create()->setContent('Hello Jean !')
            ->setConditions(array(
                  StringCondition::create('test')->eq("testStringTag")
            ));
$request = CreateMessageRequest::create()
            ->addNotification($notification);
$response = $pushwoosh->createMessage($request);
    
The device is not receiving the push and $response->isOk() is true.

What am I doing wrong? Thanks

asked 20 Feb '16, 22:11
gru2's gravatar image

gru2
111

Be the first one to answer this question!
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:

×120
×37
×33

question asked: 20 Feb '16, 22:11

question was seen: 564 times

last updated: 20 Feb '16, 22:11