Hi!

I am looking to filter notifications based on users current location. I get that I can set geozones through the PushWoosh web-site, but I can't seem to find any way to do this through the remote API.

I want to do something like this:

    $this->pwCall('createMessage', 
        array
        (
        'application' => 'XXXXX-XXXXX',
        'auth' => 'XXXXXX[...]',
        'lng' => 42,
        'lat' => 42,
        'range' => 1000,
        'notifications' => array
            (
                array
                (
                    "platforms" => array(3),
                    'send_date' => 'now',
                    "ignore_user_timezone" => true,
                    'content' => "$message",
                    'data' => array("type" => $type),
                    "android_header" => "$header",
                )
            )
        )
    );

In other words: Send the notification to any device within a certain range from a specific location, but I can't get it to work. Is it even possible to do something like this?

Thank you in advance!

asked 11 Apr '16, 08:57
JohanHager's gravatar image

JohanHager
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:

×83
×52
×33

question asked: 11 Apr '16, 08:57

question was seen: 476 times

last updated: 11 Apr '16, 08:57