Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49334

Sending background notifications with Ionic Push

$
0
0

@fablr wrote:

This reference seems to indicate that it's possible to send "silent pushes" that wake up your application so it can "do some sort of processing in the background".

http://docs.ionic.io/docs/push-sending-push#section-sending-background-notifications

I send a push notification to the https://api.ionic.io/push/notifications endpoint with the following JSON

{
  "tokens":["my_token"],
  "profile":"my_push_profile",
  "notification": {
    "payload": {
      "foo": "bar"
    },
    "ios": {
      "content_available": 1
    }
  }
}

However, this is treated exactly the same as a normal notification received in the background. I get a notification and I have to click on it before the app actually fires the notification event.

Is this behaviour expected? Is there no way to get the push notification to trigger functionality without having to click on it or have the app in the foreground?

The app is running on an android device. If there's any other information you need, please let me know.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49334

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>