I need to use the content-available variable when pushing notifications to my device. I am using then pluging for cordova.

In tha apple docs it says:

The aps dictionary can also contain the content-available property. The content-available property with a value of 1 lets the remote notification act as a “silent” notification. When a silent notification arrives, iOS wakes up your app in the background so that you can get new data from your server or do background information processing. Users aren’t told about the new or changed information that results from a silent notification, but they can find out about it the next time they open your app.

Does pushwoosh support this variable and let me do background stuff when the application still is in the background?

asked 03 Sep '15, 22:25
Christian%20Martin's gravatar image

Christian Ma...
112

Hi rwillett,

The correct way is:

"ios_root_params": {
                    "aps": {
                        "content-available": "1"
                    }
                }
permanent link
answered 22 Dec '15, 15:31
Benedict's gravatar image

Benedict
7127

Hello!

Yes, we do support this, please see our /createMessage guide:

"ios_root_params" : {     //Optional - root level parameters to the aps dictionary
                     "aps":{
                               "content-available": "1"
                     }
           },
permanent link
answered 04 Sep '15, 08:04
Benedict's gravatar image

Benedict
7127

There appears to be two different defns for content-available.

The one above "ios_root_params" : { //Optional - root level parameters to the aps dictionary "aps":{ "content-available": "1" } },

and the defn on the Blog page (https://www.pushwoosh.com/newsstand-push-notifications/)

“ios_root_params”: { “content-available”: 1 }

Which is the correct and authoritative one please? I'm assuming the main docs....

permanent link
answered 21 Dec '15, 21:46
rwillett's gravatar image

rwillett
2015

Thanks,

The blog post appears to be wrong then :)

Rob

permanent link
answered 22 Dec '15, 18:02
rwillett's gravatar image

rwillett
2015

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

question asked: 03 Sep '15, 22:25

question was seen: 1,852 times

last updated: 22 Dec '15, 18:02