is there a way to send silent notification from the remote API. in CP interface there's an option to check "Send silent notification" for ios. how can I use this option from the remote API for ios and Android?

asked 23 Feb '14, 00:04
inon's gravatar image

inon
31115

The last update of the native Android SDK includes support of silent push notifications.

In your API request please use the "ios_sound":"" and "android_sound":"" parameters with an empty value.

It's also available through Control Panel:

permanent link
answered 20 Jan '15, 16:00
Alex%20Spotar's gravatar image

Alex Spotar
3.6k6

edited 20 Jan '15, 16:01

Yes, that's possible. Just send ios_sound: "" or android_sound: "", in notification's settings. Request example:

{
    "request": {
        "auth": "TOKEN",
        "application": "xxxxx-xxxxx",
        "notifications": [
            {
                "send_date": "now",
                "content": "silent notification",
                "ios_sound": "",
                "android_sound": "silent.wav" // you must add silence voice file into you project
            }
        ]
    }
}
permanent link
answered 24 Feb '14, 08:53
neon's gravatar image

neon
312

edited 08 Jan '15, 14:15

XXXX's gravatar image

XXXX
2.2k6

No, a sound is still heard on Android and Iphone.

permanent link
answered 07 Jan '15, 15:08
HenrikErlandsson's gravatar image

HenrikErland...
1

Please try again for iOS.

For Android - it is not possible to send silent notification. You can make silent.wav file in you project and send it

(08 Jan '15, 14:07) XXXX XXXX's gravatar image

P.S. new SDK update will allow silent push on Android.

(10 Jan '15, 09:11) shader shader'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:

×120
×20

question asked: 23 Feb '14, 00:04

question was seen: 2,195 times

last updated: 20 Jan '15, 16:01