0
1

Hi, I will try to get this question running again.

How do I get truly silent (no vibration, no alert, no badges, no nothing) using the remote API?

I tried the most stripped down JSON I could possibly try, though I still get an alert with the name of the app and phone vibrates (tested on android).

This is the JSON I tried using (all important data was masked):

{
    "request":{
        "application":"APP_ID",
        "auth": "AUTH_CODE",
        "notifications":[{
            "send_date":"now",
            "android_badges": 0,
            "devices": ["DEVICE_ID"],
        }]
    }
}

Any ideas? Thank you in advance!

asked 19 Jul '16, 15:42
Eyal%20Mor's gravatar image

Eyal Mor
13

edited 19 Jul '16, 15:44

You need to add the following into the notifications section of the json. e.g. just after devices:

For Android:

  "android_root_params": {
      "silent": "true"
  }

And for iOS:

     "ios_root_params": {
          "aps": {
              "content-available": "1"
          }
      }

I can confirm this works very well for Android but I'm yet to try it with iOS.

permanent link
answered 19 Jul '16, 19:42
Gary_oo's gravatar image

Gary_oo
1015

Worked like a charm! Thanks!

(20 Jul '16, 08:19) Eyal Mor Eyal%20Mor'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

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
×444
×190

question asked: 19 Jul '16, 15:42

question was seen: 1,440 times

last updated: 20 Jul '16, 08:19